suprsnipes
Active Member
- Joined
- Apr 26, 2009
- Messages
- 434
Hi,
I have a web query created using VBA and would like to know how to change the destination from ActiveSheet to specific sheet name? In this case "bar".
suprsnipes
I have a web query created using VBA and would like to know how to change the destination from ActiveSheet to specific sheet name? In this case "bar".
Code:
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;" & MyUrl, Destination:=Cells(1, 1))
.PostText = MyPost
.RefreshStyle = xlOverwriteCells
.PreserveFormatting = True
.AdjustColumnWidth = False
.WebFormatting = None
.BackgroundQuery = True
.TablesOnlyFromHTML = True
.Refresh BackgroundQuery:=False
.SaveData = True
End With
suprsnipes