+ Reply to Thread
Results 1 to 4 of 4

Using VBA to excecute an OnClick Event

  1. #1
    Registered User
    Join Date
    10-13-2010
    Location
    Malvern, AR
    MS-Off Ver
    Excel 2003
    Posts
    49

    Using VBA to excecute an OnClick Event

    Hey Guys,

    I want to start off by saying that this is one of the best forums I have been on. Everyones answer has helped me so much and someone replies to each thread I post pretty fast.

    I have a new question.

    I have a script I am writing in VBA that interacts with a site I use. On road block I have come to is I have an OnClick even that I need to trigger. Here is the kicker, the HREF is the same as every other on the page (javascript:void(0). How would I go about finding this particular OnClick button and then having the VBA code "click" it?

    Thanks for your time!

    Here is a clip:

    Please Login or Register  to view this content.
    Last edited by ChrisKader; 11-13-2010 at 11:16 PM.

  2. #2
    Registered User
    Join Date
    10-13-2010
    Location
    Malvern, AR
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: Using VBA to excecute an OnClick Event

    And nevermind...... I figured it out. I just used the ie.Navigate function to point to the javascript. I thought I tried that before but I guess I was wrong. Sorry to waste your time.

  3. #3
    Registered User
    Join Date
    07-06-2009
    Location
    Norwich
    MS-Off Ver
    Mac Excel 2008
    Posts
    26

    Re: Using VBA to excecute an OnClick Event

    Hi sorry to bring up an old post, what is the answer? i have the same problem but cant work out what ie.navigate request i should call...

    Thanks

  4. #4
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: Using VBA to excecute an OnClick Event

    the mods will tell you to start your own question instead of posting in an old one. Link to this question if you feel it helps illustrate your issue.

+ 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