+ Reply to Thread
Results 1 to 2 of 2

VBA Macro Click on webpage button

  1. #1
    Registered User
    Join Date
    09-09-2014
    Location
    Ann Arbor, Michigan
    MS-Off Ver
    Office 365
    Posts
    10

    VBA Macro Click on webpage button

    I am trying to have my macro click on a "save" button on a webpage, but I am having some trouble with the coding.

    The HTML code that points to the save button:
    <input value=" Save " class="btn" name="save" tabindex="4" title="Save" type="submit">

    The VBA code that I have used (which didn't work):
    inex.Document.All.Item("save").Click

    where inex is what I have named the window of the webpage that I am working on. Does anyone have any pointers?
    Thanks
    Todd B

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

    Re: VBA Macro Click on webpage button


    No ID so all may not work !

    Try with getElementsByName or submit the form

+ 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. Paste Data into Webpage and click Button
    By Gannon2145 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2015, 07:33 AM
  2. VBA to click on 'Continue' button on webpage
    By Jimbo77 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-20-2014, 06:49 PM
  3. click webpage button problem
    By ckjason in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-01-2013, 03:56 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. Clicking a submit button after macro opens webpage.
    By CJPHX in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-09-2010, 08:55 AM

Tags for this Thread

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