+ Reply to Thread
Results 1 to 4 of 4

Submit IE Form with same Name (different values)

  1. #1
    Registered User
    Join Date
    04-08-2010
    Location
    Northeast
    MS-Off Ver
    Excel 2003
    Posts
    10

    Submit IE Form with same Name (different values)

    Hello all,

    I've searched all over the net and was unsuccessfull at clicking a button that has the same name as another button in the IE Document form, just different values. Here's the source code of the website:

    Please Login or Register  to view this content.
    How does one submit that specific button (the Download button) in that form? Thank you so much!

    ie.Document.getElementById("action").Value("Download").submit doesn't work and I can't reference it
    ie.Document.getElementById("action").Value = "Download" just names the other button "Download" and errors out when submitted.

    Maybe I need an "onmousover" type event? Thanks in advance for any help. The attachment shows what the website looks like.
    Attached Images Attached Images

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Submit IE Form with same Name (different values)

    Maybe:

    Please Login or Register  to view this content.



  3. #3
    Registered User
    Join Date
    04-08-2010
    Location
    Northeast
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Submit IE Form with same Name (different values)

    Quote Originally Posted by snb View Post
    Maybe:

    Please Login or Register  to view this content.
    Thanks for the quick reply. The reason this doesn't work is because there are two buttons with the name "action" on the same form (highlighted in red). The value= "Download" is the button I want to click

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Submit IE Form with same Name (different values)

    Hello BByrd,

    This macro can be run after you have started Internet Explorer. It will find the form named "reportForm" , locate the input button "Download" and then click the button for you. The macro will inform you if either the form or button can not be found.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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