Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have problem to write macro I want to retrieve data from web. can anyone help me with this? please........ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() dataimport external datanew put your url in the address linepick tables (or whole page)import -- Don Guillett Microsoft MVP Excel SalesAid Software wrote in message ... Hi, I have problem to write macro I want to retrieve data from web. can anyone help me with this? please........ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
VBA demo for importing a webpage into Excel
(This will import this discussion into Excel. Not very pretty, but good enough to extract any desired data out of the imported web page) Private Sub Webpageimportexample() Dim uri As String Dim ws As Worksheet uri = "URL;" & "http://groups.google.com/group/ microsoft.public.excel.programming/browse_thread/thread/ f39346eab6de8d55?hl=en" Err.Clear Set ws = Worksheets.Add With ws.QueryTables.Add(Connection:=uri, Destination:=ws.Range("A1")) .Refresh (False) End With err_num = Err.Number If err_num < 0 Then If err_num = 1004 Then x = MsgBox("no connection", vbCritical, "web page retrieval") Else x = MsgBox("Error while updating: " + CStr(err_num), vbCritical, "web page retrieval") End If End If End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Retrieve whole row of data | Excel Worksheet Functions | |||
Retrieve multiple data rows data from a very long list and copy t | Excel Discussion (Misc queries) | |||
How to retrieve data from web? | Excel Programming | |||
Retrieve data | Excel Discussion (Misc queries) | |||
retrieve data | Excel Programming |