Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ron ron is offline
external usenet poster
 
Posts: 118
Default getting data from web

Mark...Since you haven't provided the url, I'm not exactly sure what you're trying to do. But perhaps the following construction can achieve what you want in a much faster and more economical fashion than using the query method...Ron

Note: IE-Tools-Internet Options-Security-Internet-Custom Level-Miscellaneous-set "Access data sources across domains" to "Enable" to prevent "Access Denied" errors.

Sub Test()
my_url = "http://www.your_url.com"
Set my_obj = CreateObject("MSXML2.XMLHTTP")
my_obj.Open "GET", my_url, False
my_obj.send
my_var = my_obj.responsetext
Set my_obj = Nothing
' now you can use "instr" and "mid" to extract the information you
' want from the source code which is contained in my_var

End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
mp mp is offline
external usenet poster
 
Posts: 70
Default getting data from web


"ron" wrote in message
...
Mark...Since you haven't provided the url, I'm not exactly sure what
you're trying to do. But perhaps the following construction can achieve
what you want in a much faster and more economical fashion than using the
query method...Ron

Note: IE-Tools-Internet Options-Security-Internet-Custom
Level-Miscellaneous-set "Access data sources across domains" to "Enable"
to prevent "Access Denied" errors.

Sub Test()
my_url = "http://www.your_url.com"
Set my_obj = CreateObject("MSXML2.XMLHTTP")
my_obj.Open "GET", my_url, False
my_obj.send
my_var = my_obj.responsetext
Set my_obj = Nothing
' now you can use "instr" and "mid" to extract the information you
' want from the source code which is contained in my_var

End Sub


cool, I'll play with that
Thanks
Mark


  #3   Report Post  
Posted to microsoft.public.excel.programming
mp mp is offline
external usenet poster
 
Posts: 70
Default getting data from web


"ron" wrote in message
...
Mark...Since you haven't provided the url, I'm not exactly sure what
you're trying to do. But perhaps the following construction can achieve
what you want in a much faster and more economical fashion than using the
query method...Ron

Note: IE-Tools-Internet Options-Security-Internet-Custom
Level-Miscellaneous-set "Access data sources across domains" to "Enable"
to prevent "Access Denied" errors.

Sub Test()
my_url = "http://www.your_url.com"
Set my_obj = CreateObject("MSXML2.XMLHTTP")
my_obj.Open "GET", my_url, False
my_obj.send
my_var = my_obj.responsetext
Set my_obj = Nothing
' now you can use "instr" and "mid" to extract the information you
' want from the source code which is contained in my_var

End Sub


Hey Ron,
I finally got around to trying that (got busy with other stuff)
it works great, thanks
fwiw the url is similar to
http://download.finance.yahoo.com/d/...&f=l1vhgd1rm4n

where the parts "....AAPL+EZCH+BIDU+ARUN+....." can be any series of stock
tickers
and the tags after &f= are any list of yahoo finance tags

see for more info
http://www.gummy-stuff.org/Yahoo-data.htm

thanks
mark


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
Save 60% on Data Entry, Data Conversion, Data Processing Services byOffshore-Data-Entry [email protected] Excel Programming 0 June 4th 08 04:02 PM
Save 60% on Data Entry, Data Conversion, Data Processing Services byOffshore-Data-Entry [email protected] Excel Programming 0 June 4th 08 04:00 PM
Reliable Data Conversion,Data Formats and Data Entry Services by DataEntry India Data Entry India Excel Programming 0 March 31st 08 12:03 PM
Data Entry Online, Data Format, Data Conversion and Data EntryServices through Data Entry Outsourcing [email protected] Excel Discussion (Misc queries) 0 March 20th 08 12:45 PM
Excel Macro for taking data external data and populating it on a sheet and deleting unwanted data [email protected] Excel Programming 3 November 8th 07 05:59 AM


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