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)
Loading...
Go back to All Questions Login or Register
653 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

0

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!