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

1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 4.75 out of 5)
Go back to All Questions Login or Register

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


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?



Hi Ya, apologies for late reply. Best if you could share the URL of the webpage. I could easily suggest the one-liner

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