Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Declare Function URLDownloadToFile Lib "urlmon" Alias _
"URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, _
ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
Private Sub Command1_Click()
Dim done
Dim myLink As String
myLink = "[URL unfurl="true"]https://docs.google.com/spreadsheets/d/1_XXXXXXXXXXXXXXXXXXXXXX_XXXXXXXXXXXXXXXXXXX/pub?gid=0&single=true&output=csv"[/URL]
If Dir("C:\Test\Test.csv") <> vbNullString Then Kill "C:\Test\Test.csv"
done = URLDownloadToFile(0, myLink, "C:\Test\Test.csv", 0, 0)
If done = 0 Then
MsgBox "File has been downloaded!"
Else
MsgBox "File not found!"
End If
End Sub