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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using click command in internet explorer

Status
Not open for further replies.

accjrf

Technical User
Apr 1, 2004
39
US
I have read many posts using code to login to a web page but i am having trouble with a couple of things...

Dim IE as object
Dim iePage as object

Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.navigate "http:MY WEB ADDR"
Do Until IE.readyState = 4
Loop

Set iePage = ieApp.Document
iePage.Forms("????").Item("?????").Click

2 Questions - 1. When the code gets to the last line i get an "Object Variable not set" error? 2. How do i know what name to put in the "????" areas?

Please help....Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top