locked
Convert javascript to VBA commands RRS feed

  • Question

  • Hello all;

    Is there a VBA equivalent to this javascript line that (as I understand it) is executing a command button on the active webpage:

    "$('iframe').contents().find('iframe').contents().find('#content').contents().find('#__xmlview1--idx').click()"


    Monday, November 27, 2017 3:45 PM

All replies

  • I've done it by using this code, which uses the IE object:

    IE.Document.getElementsByName("CREATE_REPORT").Item(0).Click

    The specifics really depend on how deeply buried the button is on the page.


    Monday, November 27, 2017 3:58 PM