Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Web Query
Mike
Set it up manually, then change the Connection string and Refresh. Here's an example Sub LookUpWord() Dim MyURL As String Dim TheWord As String MyURL = "URL;http://dictionary.reference.com/search?q=" TheWord = Application.InputBox("Enter a word") MyURL = MyURL & TheWord & "&db=*" With Sheet1.QueryTables(1) .Connection = MyURL .Refresh End With End Sub -- Dick Kusleika MVP - Excel www.dicks-clicks.com Post all replies to the newsgroup. "Mike Berger" wrote in message ... Does anyone know if I can dynamically generate a Web Query ? I want to allow the user to enter a code, and this code will be part of the URL for the web query. So I need to dynamically generate the entire Web Query, or dynamically update a saved Web Query. Make sense ? Thanks Mike |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Import New Database Query (Union Query) in Spreadsheet | Excel Discussion (Misc queries) | |||
Convert hard coded query criteria to Parameter Query | Excel Discussion (Misc queries) | |||
Excel 2007 / MS Query - editing existing query to another sheet | Excel Discussion (Misc queries) | |||
Microsoft Query rejects "nz" function in Access Query | Excel Discussion (Misc queries) | |||
How to use a Access Query that as a parameter into Excel database query | Excel Discussion (Misc queries) |