Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I pass info from excel to a hyperlinked explorer page

I would like to open an internet page from excel and transfer data to the
input fields. I know how to activate a web page with hyperlink, but I don't
know how to pass the data. Any thoughts?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 575
Default How do I pass info from excel to a hyperlinked explorer page

I'm not sure what you are doing exactly, but this gives an exact answer to
your question using a hyperlink:

Edit the hyperlink address to include the parameters. For example, I added a
hyperlink with Text saying YahooFinance, but made the web address to display
a quote on HSBC: http://finance.yahoo.com/q?s=0005.HK

If you are trying to do a post and get from a web page and return the
information to excel, it is rather different. Something like this:

'requires a project reference to MS XML4
Dim strURL As String
Dim strParams
Dim vValue as variant
Dim lRandom As Long
Dim oXML As MSXML2.XMLHTTP40

Set oXML = New MSXML2.XMLHTTP40
lRandom = Int(100000 * Rnd)
'I just made this link up so it will not do anything
strParams = "?LastName=Hammond&FirstName=Robin"
strParams = strParams & "&Dummy=" & cstr(lRandom)
strURL = "http://someweb.com"
oXML.Open "GET", strURL, False
oXML.setRequestHeader "cache-control", "no-cache"
oXML.setRequestHeader "pragma", "no-cache"
'send the information
oXML.Send
vValue = oXML.responseText
'do something with vValue if it is valid here

Robin Hammond
www.enhanceddatasystems.com


"wcc" wrote in message
...
I would like to open an internet page from excel and transfer data to the
input fields. I know how to activate a web page with hyperlink, but I
don't
know how to pass the data. Any thoughts?



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
Printing Hyperlinked Info Kristin Broggi Excel Discussion (Misc queries) 1 August 15th 06 11:07 PM
How can I close a hyperlinked page? Heather Excel Discussion (Misc queries) 0 July 31st 06 11:15 PM
bring hyperlinked cell to top of page Tina Excel Worksheet Functions 7 February 16th 06 04:11 PM
File info from Windows Explorer to Excel? Wordgeek Excel Discussion (Misc queries) 1 September 15th 05 02:58 PM
MAKING EXCEL AS HOME PAGE IN INTERNET EXPLORER Jagz Excel Discussion (Misc queries) 4 January 2nd 05 02:51 PM


All times are GMT +1. The time now is 07:51 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"