#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 599
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Import New Database Query (Union Query) in Spreadsheet klock Excel Discussion (Misc queries) 2 September 24th 09 01:30 AM
Convert hard coded query criteria to Parameter Query Melanie[_2_] Excel Discussion (Misc queries) 0 July 15th 08 09:59 PM
Excel 2007 / MS Query - editing existing query to another sheet Hotpepperz Excel Discussion (Misc queries) 0 June 13th 08 06:53 PM
Microsoft Query rejects "nz" function in Access Query Vaughan Excel Discussion (Misc queries) 0 May 4th 05 05:20 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 10:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"