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

Hi,

http://www.investor.reuters.wallst.c...asp?ticker=IBM

Trying to retrieve specific info from the web page.
ie: EPS (TTM) vs TTM 1 Yr. Ago

I can't seem to retrieve any data from the page, I have tried using the
following:

#1:
'Microsoft.XMLHTTP, MS COM object to retrieve data from another website via
HTTP requests
Set xmlhttp = CreateObject("Microsoft.XMLHTTP")

#2:
Set oIE = New SHDocVw.InternetExplorer
'Open the web page
oIE.Navigate
"http://www.investor.reuters.wallst.com/stocks/Ratios.asp?ticker=IBM


What is the best way to retrieve the data from this page?


Thanks.





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Retreving data from Web page

What specifically happened when you tried those approaches?
They are both valid methods.


--
Tim Williams
Palo Alto, CA


"tech" wrote in message ...
Hi,

http://www.investor.reuters.wallst.c...asp?ticker=IBM

Trying to retrieve specific info from the web page.
ie: EPS (TTM) vs TTM 1 Yr. Ago

I can't seem to retrieve any data from the page, I have tried using the
following:

#1:
'Microsoft.XMLHTTP, MS COM object to retrieve data from another website via
HTTP requests
Set xmlhttp = CreateObject("Microsoft.XMLHTTP")

#2:
Set oIE = New SHDocVw.InternetExplorer
'Open the web page
oIE.Navigate
"http://www.investor.reuters.wallst.com/stocks/Ratios.asp?ticker=IBM


What is the best way to retrieve the data from this page?


Thanks.







  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Retreving data from Web page

Hi,

When I view the contents of the variable it doesn't have any of the data
shown on the webpage.
ie: EPS (TTM) vs TTM 1 Yr. Ago

Thanks.

"Tim Williams" <timjwilliams at gmail dot com wrote in message
...
What specifically happened when you tried those approaches?
They are both valid methods.


--
Tim Williams
Palo Alto, CA


"tech" wrote in message

...
Hi,

http://www.investor.reuters.wallst.c...asp?ticker=IBM

Trying to retrieve specific info from the web page.
ie: EPS (TTM) vs TTM 1 Yr. Ago

I can't seem to retrieve any data from the page, I have tried using the
following:

#1:
'Microsoft.XMLHTTP, MS COM object to retrieve data from another website

via
HTTP requests
Set xmlhttp = CreateObject("Microsoft.XMLHTTP")

#2:
Set oIE = New SHDocVw.InternetExplorer
'Open the web page
oIE.Navigate
"http://www.investor.reuters.wallst.com/stocks/Ratios.asp?ticker=IBM


What is the best way to retrieve the data from this page?


Thanks.









  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 122
Default Retreving data from Web page

tech wrote:

When I view the contents of the variable it doesn't have any of the data
shown on the webpage.
ie: EPS (TTM) vs TTM 1 Yr. Ago


Which variable are you looking at? You'll need to search through the
attributes of the oIE object to find the particular piece of
information you're looking for, or at least search the innerHTML using
InStr(). The page you're looking at using DIV and SPAN tags instead of
HTML tables, so it may be easier to use InStr().

If you're doing a lot with EXCEL and the stock market, I'd suggest a
visit to:

http://groups.yahoo.com/group/xltraders/
http://groups.yahoo.com/group/smf_addin/

They have tools in their libraries to retrieve financial data from web
pages.

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
Excel formula to change page # when data entered in other page Solograndma Excel Discussion (Misc queries) 2 March 12th 07 01:35 PM
How do I copy a graph of a data page to a new data page. Jackrc Charts and Charting in Excel 1 May 9th 06 12:20 PM
Page Break Preview Page Number as Data Neal Zimm Excel Programming 1 May 3rd 05 01:01 AM
excel fit to 1 page shows 1 page but not all data is on that page Jans Excel Programming 1 September 2nd 04 01:49 AM
Printing second page if data overruns, otherwise print first page playdohstu Excel Programming 1 February 12th 04 02:08 PM


All times are GMT +1. The time now is 03:01 AM.

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"