![]() |
|
#6
|
||||
|
||||
|
I think I found it, Younes. I've never tried automating a QueryTable before, so I had to go look it up, but the documentation says your string has to start with "URL;". I thought maybe there was something wrong with the URL itself, you'll remember, so I made a copy of your program and plugged in a different URL that I knew was valid:
Code:
Sub Test()
URL = "http://www.onelook.com/?w=frick&ls=a"
With ActiveSheet.QueryTables.Add(Connection:=URL, Destination:=Cells(1, 1))
.Name = ""
.FieldNames = True
.RowNumbers = False
' blah, blah, blah
End With
End Sub
Code:
Sub Test()
URL = "URL;http://www.onelook.com/?w=frick&ls=a"
With ActiveSheet.QueryTables.Add(Connection:=URL, Destination:=Cells(1, 1))
.Name = ""
.FieldNames = True
.RowNumbers = False
' blah, blah, blah
End With
End Sub
Sorry for the delay; I should have gotten to it sooner. |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Match two sets of data and display specific data | lolly150 | Excel | 1 | 05-14-2012 10:33 PM |
| Edit Data Source- Linking template charts to new data | lbf | PowerPoint | 0 | 10-28-2011 12:19 PM |
| Powerpoint: adding data to trend lines w/o data labels | HaiLe | PowerPoint | 0 | 04-11-2011 09:21 AM |