Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Posting data from worksheet to webquery ??

Can anyone tell me some macro code to send data from say cell A10 to a
web query to be placed in sheet2 in cell A1 if it's possible.

The webquery page would be something like http://localhost/test.php?query=(text
in cell A10 sheet1)

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Posting data from worksheet to webquery ??

here's one way:

Dim qry As QueryTable
With Sheets("Sheet2")
Set qry =
..QueryTables.Add(Connection:="URL;http://localhost/test.php?query=" &
Sheets("Sheet1").Range("A10").Text, Destination:=.Range("A1"))
qry.Refresh
End With



--
Hope that helps.

Vergel Adriano


" wrote:

Can anyone tell me some macro code to send data from say cell A10 to a
web query to be placed in sheet2 in cell A1 if it's possible.

The webquery page would be something like http://localhost/test.php?query=(text
in cell A10 sheet1)

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Posting data from worksheet to webquery ??

Thanks for that Vergel it works a treat.

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
Posting Data From 1 Wksht to Another RobL Excel Worksheet Functions 1 December 5th 07 07:50 PM
Get Webpage data as text using VBA w/o Webquery Max Excel Programming 0 March 15th 07 06:40 AM
Posting lowest values in a seperate worksheet. [email protected] Excel Worksheet Functions 2 September 6th 06 03:22 PM
the owner of posting should be able to delete the posting Mahendra Excel Discussion (Misc queries) 7 August 8th 05 07:21 PM
Posting text typed inside a TexBox into the worksheet cell Syed Ahmad Anas Excel Programming 2 July 30th 03 07:54 AM


All times are GMT +1. The time now is 01:04 PM.

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

About Us

"It's about Microsoft Excel"