我正在寻找一种通过WiFi使用Apache POI更新Excel数据库的方法.
我发现的所有示例都将文件声明为位于PC硬盘上,如下所示:
File myFile = new File("C://temp/Example.xlsx");
Run Code Online (Sandbox Code Playgroud)
我如何继续考虑我的文件将在网络上,并且应该由设备通过WiFi访问?
我有以下代码可以很好地以像素形式检索光标位置:
Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
' Create custom variable that holds two integers
Type POINTAPI
Xcoord As Long
Ycoord As Long
End Type
Sub GetCursorPosDemo()
Dim llCoord As POINTAPI
' Get the cursor positions
GetCursorPos llCoord
' Display the cursor position coordinates
MsgBox "X Position: " & llCoord.Xcoord & vbNewLine & "Y Position: " & llCoord.Ycoord
End Sub
Run Code Online (Sandbox Code Playgroud)
我希望它返回我的光标当前所在的单元格地址,或者可能是 Points 中的坐标,以便我可以将其转换为地址。那可能吗?