web query question

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

I want to log data from a weather statio n into excel. Is it possible to
use web query and have the data go into a new column each time its
refreshed? How should I do this?

Mark
 
Logs query data as rows rather than columns, but you get the idea...

If you need to schedule refreshes then look into
application.ontime



Tim

'*************************************
Sub LogData()

With ActiveSheet
.QueryTables(1).BackgroundQuery = False
.QueryTables(1).Refresh
.Range("B3").Copy .Range("D10000").End(xlUp).Offset(1, 0)
.Range("B4").Copy .Range("E10000").End(xlUp).Offset(1, 0)
.Range("B6").Copy .Range("F10000").End(xlUp).Offset(1, 0)
End With

End Sub
'**************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top