How to click the button when the button does has a ID

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)
Loading...
Go back to All Questions Login or Register
45 views
0

Hi, I am very new to VBA. I am writing some VBA to automate a simple process where I need to click the button in a webiste. The code I used for this is the following

objIE.document.Name(“button”).Click

I could not use objIE.document.getElementByid as the id does not exist in the html codes.

Here is the html codes:

Add car

How should I change the code to make it click the button?

Thanks
Sylvia

Simply the best place to learn VBA!

Error: Please enter a valid email address

Error: Invalid email

Error: Please enter your first name

Error: Please enter your last name

Error: Please enter a username

Error: Please enter a password

Error: Please confirm your password

Error: Password and password confirmation do not match