Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA Excel

Status
Not open for further replies.

simplypoet

Technical User
Joined
Jan 30, 2012
Messages
3
Location
US
i am trying to create a script that will select information from an internet page, and paste it into an excel doc. So far, my script will only open the web page, but i cannot access the fields at which i need to copy the information.
 
hi,

Your code?

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
im really starting from scratch here.. with not a lot of background in vbscript.
____________
Sub internet1()

ActiveCell(A, 1).Copy

Set IE = CreateObject("InternetExplorer.Application")
IE.Navigate "IE.Visible = True

End Sub

_____________

in the interest of giving all of the information, i am actually wanting to make a script that will copy a cell, paste it in a web form, the search it, then retrieve a piece of information, and paste it back into another cell(A,2)

i have tried many different ways of navigating the web page, including Sendkeys, with no luck.


Thanks!
 
I would check out a web query.

Date > get external data > web query.

Turn on your macro recorder and record editing your query.

Play around with the TABLE number and RUN the code. You may find a way to provide the value of interest in the query code parameters. Just a guess.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
i had tried that for a while, but the information that i need to copy from the web page does not have the yellow arrow next to it, so i didnt know how to copy a random field on the page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top