+ Reply to Thread
Results 1 to 3 of 3

Auto click macro button

  1. #1
    Registered User
    Join Date
    06-16-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    138

    Auto click macro button

    Hi

    Please Login or Register  to view this content.
    Above is the code I have.

    I have created a button which when clicked manually clears the contents in T23, as seen in the top half of the code.

    I have written the second half of the code in the hope it will auto click the button every 10 seconds but it doesn't do anything.

    Can anyone see what's wrong with this?

    Thanks

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Auto click macro button

    You're trying to call a procedure called "Repeat_VBA", but it doesn't exist. In addition, the 'Test' procedure is not part of the click event so will never run from the button.

    The correct way to do it would be
    Please Login or Register  to view this content.
    But I don't think that you can call a click event in that way, you will most likely need a 2 part procedure with valid names and references (untested, just done on the fly)

    Please Login or Register  to view this content.

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Auto click macro button

    @ parbynat

    Administrative Note:
    Welcome to the forum
    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums.
    Read this to understand why we (and other sites like us) consider this to be important.

    (note: this request is not optional No Help to be offered until the link is provided)
    Last edited by FlameRetired; 03-06-2019 at 06:50 PM.
    Dave

+ 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. [SOLVED] How to create auto fill & click button
    By Byambadorj in forum Excel General
    Replies: 7
    Last Post: 05-10-2017, 03:50 AM
  2. Macro to click a 'choose file' button on webpage, browse for a local file, and click open
    By Insaintime32 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-06-2016, 04:46 PM
  3. 1 week work schedule = auto change date with button click
    By justspiffy in forum Excel General
    Replies: 10
    Last Post: 03-30-2015, 12:27 PM
  4. Replies: 0
    Last Post: 07-10-2014, 10:17 AM
  5. Auto Update of 'ListFillRange' property & Creation of textboxes at Click Event of a button
    By rahul.kamat01 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-24-2013, 06:32 AM
  6. How to auto click the save as button in IE 9
    By zalora in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-13-2013, 06:43 AM
  7. Click a button, auto-save a copy of the .XLS file to a specified location?
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-03-2011, 12:45 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