Dear All,
I amusing the coding below to retrieve data from a web site, an inport into Excel, how can I tell when the data has finished importing, so I can retrieve another days worth of data.
The Coding.
Sub test()
Sheets(2).Select
pathname = [c3].Value
Sheets(1).Select
Range("a1"
.Select
Set shFirstQtr = Workbooks(1).Worksheets(1)
Set qtQtrResults = shFirstQtr.QueryTables _
.Add(Connection:=pathname, _
Destination:=shFirstQtr.Cells(1, 1).End(xlDown).Offset(1, 0))
With qtQtrResults
.WebSingleBlockTextImport = True
.Refresh
End With
Sheets(2).Select
End Sub
thanks for any help on this
Thanks Rob.![[yoda] [yoda] [yoda]](/data/assets/smilies/yoda.gif)
I amusing the coding below to retrieve data from a web site, an inport into Excel, how can I tell when the data has finished importing, so I can retrieve another days worth of data.
The Coding.
Sub test()
Sheets(2).Select
pathname = [c3].Value
Sheets(1).Select
Range("a1"
Set shFirstQtr = Workbooks(1).Worksheets(1)
Set qtQtrResults = shFirstQtr.QueryTables _
.Add(Connection:=pathname, _
Destination:=shFirstQtr.Cells(1, 1).End(xlDown).Offset(1, 0))
With qtQtrResults
.WebSingleBlockTextImport = True
.Refresh
End With
Sheets(2).Select
End Sub
thanks for any help on this
Thanks Rob.
![[yoda] [yoda] [yoda]](/data/assets/smilies/yoda.gif)