drsl90685154 2015-09-03 13:50
浏览 148

使用宏Excel到PHP数据

I am stuck with fetching Excel Realtime Data to PHP.

I followed the Link, and converted Excel to Json inside the Excel it self. https://www.youtube.com/watch?v=qeFHOe-97fw

Now i want to read Particular Cell Value with PHP using Macro (why Macro? : Which will reduce Saving Excel every second).

I found some solution on that, but some how it's not working with me. Reference Tried: How can I send an HTTP POST request to a server from Excel using VBA?

Can i See Data? (Print or Echo)? Code: PHP file:

<?php
$excelCellA1Value = $_GET["variable"];
echo $excelCellA1Value;
//$data=$excelCellA1Value;
//echo $data;
?>

VBA File:

    Sub PostData()
    Set objHTTP = CreateObject("WinHttp.WinHttpRequest.5.1"
    url = "http://localhost:81/array/post.php?variable="
    objHTTP.Open "POST", url, False
    objHTTP.setRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
    objHTTP.send (Cells(18, 2).Value)
    RunEveryTwoMinutes


End Sub

My Question is: How can i read a specific Cell Value with PHP "Real Time" as my Value is refreshing every milliseconds.

Or any Possible way to read realtime data?

Regards Hardik

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 keil的map文件中Image component sizes各项意思
    • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
    • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
    • ¥15 划分vlan后,链路不通了?
    • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
    • ¥15 Vue3 大型图片数据拖动排序
    • ¥15 Centos / PETGEM
    • ¥15 划分vlan后不通了
    • ¥20 用雷电模拟器安装百达屋apk一直闪退
    • ¥15 算能科技20240506咨询(拒绝大模型回答)