lee2smooth03
New Member
- Joined
- Nov 13, 2011
- Messages
- 20
Hello All,
I am working on a statistics project that I could really use some help on. In short, I need to analyze data from a given website to draw the academic conclusions.
The second caveat is that I'm extremely new (and extremely green) about using VBA so I'm not particularly familiar with every method/property/event/etc. that may be available for use.
Here's the scheme of the algorithm that I want to write:
- go to the site
- find the data to be extracted from the source code
- extract the data from the site
- deliver the extracted data back to excel and drop it in a reference cell (to be added to the database)
Some of the lingo that I've seen include terms like "parsing" and there's even a property (or method...or function...IDK) called getElementById() or it's called getElementByTag(), but whenever this is applied to my defined object, I get an error.
Something tells me that I'm close, but I could really use some help in getting over this hump. Also, I'd like to open the page using Google Chrome, but so far, my code only seems to work for Internet Explorer
My (anemic) Code Thus Far
==========================================================
Dim pracPage As Object
Set pracPage = CreateObject("internetexplorer.application")
With pracPage
.Visible = True
.navigate "www.someRandomWebPage.com"
While pracPage.busy
DoEvents
Wend
.Toolbar = True
End With
==========================================================
By the way, I'm working on with the following software:
- window's 7 home premium
- MS Excel 2010 (VBA7)
Thanks for anything that helps (and even things that don't)
I am working on a statistics project that I could really use some help on. In short, I need to analyze data from a given website to draw the academic conclusions.
The second caveat is that I'm extremely new (and extremely green) about using VBA so I'm not particularly familiar with every method/property/event/etc. that may be available for use.
Here's the scheme of the algorithm that I want to write:
- go to the site
- find the data to be extracted from the source code
- extract the data from the site
- deliver the extracted data back to excel and drop it in a reference cell (to be added to the database)
Some of the lingo that I've seen include terms like "parsing" and there's even a property (or method...or function...IDK) called getElementById() or it's called getElementByTag(), but whenever this is applied to my defined object, I get an error.
Something tells me that I'm close, but I could really use some help in getting over this hump. Also, I'd like to open the page using Google Chrome, but so far, my code only seems to work for Internet Explorer
My (anemic) Code Thus Far
==========================================================
Dim pracPage As Object
Set pracPage = CreateObject("internetexplorer.application")
With pracPage
.Visible = True
.navigate "www.someRandomWebPage.com"
While pracPage.busy
DoEvents
Wend
.Toolbar = True
End With
==========================================================
By the way, I'm working on with the following software:
- window's 7 home premium
- MS Excel 2010 (VBA7)
Thanks for anything that helps (and even things that don't)