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

VBA Automation IE: click on button: input type="button" class="button"

Status
Not open for further replies.

sharonniles

Programmer
May 31, 2001
38
0
0
US
Hello Everyone,

I'm using VBA automation to auto enter data into an IE applcation. I want to click on the Edit Name button.

<input type="button" class="button" value="Edit Name" onclick="editName('0')"

<input type="button" class="button" value="Edit Name" onclick="editName('1')"

I tried the following, but I know I have the syntax wrong:

Dim EditNameButton
Set EditNameButton = IE.Document.getElementById("Edit Name").getElementsByTagName("editName('0')")
EditNameButton.Click

Any code snippet will be appreciated.

Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top