0

I have been trying to click a button on webpage using VBA but with no luck, I could see some JavaScript is used which I am not sure how to use this.

below is the code which I am using also snip of html code is below

ie.document.getelementbytagname(""nobr").click

below is the html code

 Insert Row

Please help

KR Manoj Sahoo

1
  • please include the URL if possible and/or more of the HTML code please. Commented May 31, 2018 at 10:42

1 Answer 1

1

Depending on which element you might need something like

ie.document.getElementsByTagName("nobr")(0).click

Note the s making it plural as it returns a collection of nobr tags. You then access items by index e.g. 0.

Without the URL, or more HTML to go on, it is impossible to tell if you are selecting the right item to click.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.