Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When I run the code below (the IP is masked) using the F8
button in VBA it runs fine, but when I try to us it in run time I get the Error 91 Object variable or with block variable not set. How can I overcome this? With ActiveSheet.QueryTables.Add(Connection:= _ "URL;http://" _ & "123.12.12.12" _ & "/MD/version.asp" _ & "?MyPassword=MD1234" _ , Destination:=ActiveWorkbook.ActiveSheet.Range ("A1")) .Name = "" .FieldNames = False .RowNumbers = False .FillAdjacentFormulas = False .RefreshOnFileOpen = False .BackgroundQuery = False .RefreshStyle = xlOverwriteCells .SavePassword = False .SaveData = False .Refresh BackgroundQuery:=False End With .. Thanks, Greg |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using Add Method of QueryTables gives error | Excel Programming | |||
ActiveSheet.QueryTables.Add using a File DSN | Excel Programming | |||
With ActiveSheet.QueryTables.Add | Excel Programming | |||
QueryTables Interrupt if URL is Down | Excel Programming |