Tgaboreau90
New Member
- Joined
- May 25, 2012
- Messages
- 26
Hello,
If i want to pull data from a website i do this....
but what do i do if i then want to navigate to a second website and pull data from there?
because whatever i do my code only pulls data from the first website.
i've tried...
and various other things, but can't get it to work.
i'm a beginner at vba as you can probably tell.
please help.
If i want to pull data from a website i do this....
Code:
Dim ie As New InternetExplorer
ie.Navigate "www.example.com"
Dim doc As HTMLDocument
Set doc = ie.document
Dim sSS As String
sSS = doc.getElementsByTagName("Table")(0).innerText
ActiveCell.Offset(0, 1) = sSS
because whatever i do my code only pulls data from the first website.
i've tried...
Code:
Dim doctwo As HTMLDocument
Set doctwo = ie.document
i'm a beginner at vba as you can probably tell.
please help.