I have entered the code from "VBA and Macros for Microsoft Excel" on page 341. When I step through the code I always get an error at the following line:
Set QT = WSW.QueryTables.Add(Connection:=ConnectString, _
Destination:=WSW.Range("A1"))
What might I be missing? I'm not new to Excel, but I am new to macros. Do I need some other background things setup, such as worksheet names? certain worksheet active? the range highlighted? etc.....??
Thanks for your help.
Gwenda
Set QT = WSW.QueryTables.Add(Connection:=ConnectString, _
Destination:=WSW.Range("A1"))
What might I be missing? I'm not new to Excel, but I am new to macros. Do I need some other background things setup, such as worksheet names? certain worksheet active? the range highlighted? etc.....??
Thanks for your help.
Gwenda