0

I am automating a web process with VBA. I go find an object on a webpage using

IE.document.getelementsbytagname

etc.. Once that object is found, you can single click using

 objElement.click

The question is, how do I double click?? All my searches have come up with nothing. I thought dblClick or doubleClick would do the trick, but those are invalid methods. I tried a workaround by using

objElement.click
sendkeys "{ENTER}"

to click and then hitting enter would open the link, but that doesn't work either.

1 Answer 1

4

I finally got this working:

objElement.click
objElement.FireEvent "ondblclick", 1, 2
3
  • Please use the edit link on your question to add additional information. The Post Answer button should be used only for complete answers to the question.
    – tbodt
    Commented Sep 15, 2014 at 22:50
  • @tbodt the answer I submitted is the answer to my question. Commented Sep 16, 2014 at 16:37
  • Oh. Sorry about that.
    – tbodt
    Commented Sep 16, 2014 at 20:17

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.