Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Parsing Data From HTML Source into Excel using VBA

I am trying to parse some data from some HTML web pages using VBA for Excel
(2002) but cannot
remember the function to open the web pages and assign the source info to a
variable in VBA. Does anyone know how to do this?

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Parsing Data From HTML Source into Excel using VBA

Set IE = CreateObject("InternetExplorer.Application")
IE.navigate "http://www.yahoo.com" 'place your desired URL here
IE.Visible = True 'if you want to see the browser window, but not
necessary
While IE.Busy
DoEvents
Wend
x = IE.document.body.innerHTML
IE.Quit
'now the HTML code BODY your looking for is in the variable x

you will need to add a reference to the msinet.ocx before using

Lynn S



"Peter Dickson" wrote in message
. ..
I am trying to parse some data from some HTML web pages using VBA for

Excel
(2002) but cannot
remember the function to open the web pages and assign the source info to

a
variable in VBA. Does anyone know how to do this?

Thanks




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
Can Not get cell to accept any format change! Source from html Quentin Excel Worksheet Functions 1 April 4th 09 12:08 AM
Excel 2K and parsing data Ed Excel Worksheet Functions 2 September 4th 07 05:42 PM
parsing data into Excel [email protected] Excel Discussion (Misc queries) 2 July 17th 06 05:44 PM
Excel & HTML Parsing Porphyria Excel Discussion (Misc queries) 4 June 24th 06 12:18 AM
how to change path name of html source folder ? naruemol Excel Worksheet Functions 0 June 17th 05 03:50 AM


All times are GMT +1. The time now is 08:18 AM.

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"