April 2006
Beginner
1114 pages
98h 16m
English
querytable.EditWebPage [= setting]
Sets or returns the address of the web page used by the Edit Web Query dialog box. EditWebPage is ignored for non-web queries (QueryType is not xlWebQuery).
For example, the following code performs a web query getting a quote for a specific stock, but displays the general financial page if the user decides to edit the web query:
Set ws = ActiveSheet
strConn = "URL;http://finance.yahoo.com/q/ecn?s=dell"
Set qt = ws.QueryTables.Add(strConn, [QueryDestination])
qt.EditWebPage = "http://finance.yahoo.com/"
qt.RefreshRead now
Unlock full access