+ Reply to Thread
Results 1 to 3 of 3

#How Clicking the button with Id and Name

  1. #1
    Registered User
    Join Date
    09-19-2014
    Location
    Sao Paulo
    MS-Off Ver
    2007
    Posts
    4

    Question #How Clicking the button with Id and Name

    Dear, good day!

    Again I come to request your assistance for this action;

    Below is the code where I need to click a button.
    The strange thing is that I am using the common code to clicking a button, but this is not working.
    This being reported Error 91!

    Below is the code button in html:
    <input name = "$ DetalhesProposta1 lnkbtnDocumentoEletronico" id = "DetalhesProposta1_lnkbtnDocumentoEletronico" style = "border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px;" onclick = "window.open ('/? EntradaPropostas / ImprimirProposta.aspx NumeroNSU = 10407846860628243', '', 'resizable = no, menubar = no, scrollbars = yes, width = 100, height = 100');" type = "image" src = "../ Images / print.gif" complete = "complete" />


    Below is the macro code I tried to click on it:

    .Document.getElementByid ("DetalhesProposta1_lnkbtnDocumentoEletronico"). Click

    I tried this also

    .Document.getElementByid ("DetalhesProposta1_lnkbtnDocumentoEletronico"). OnClick

    Can you help me?

    GRATEFUL!

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: #How Clicking the button with Id and Name


    Hi,

    this error means element is not found … Try to replace getElementByid with all

  3. #3
    Registered User
    Join Date
    09-19-2014
    Location
    Sao Paulo
    MS-Off Ver
    2007
    Posts
    4

    Re: #How Clicking the button with Id and Name

    Should I try it?

    .Document.all("DetalhesProposta1_lnkbtnDocumentoEletronico").OnClick

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: #How Clicking the button with Id and Name


    Yes, you must try in lowercase like in the source code …

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. clicking website button
    By Megatronixs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-09-2014, 07:28 AM
  2. VBA/IE button clicking issue
    By lordterrin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-24-2013, 03:29 PM
  3. [SOLVED] clicking a button on a promt box VBA
    By mike02 in forum Excel General
    Replies: 5
    Last Post: 08-03-2012, 11:59 AM
  4. [SOLVED] How do I run the macro for a button click without clicking the button?
    By flyboy54 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-12-2012, 10:45 AM
  5. Trouble clicking a button in IE using VBA
    By DC83 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-06-2012, 05:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1