+ Reply to Thread
Results 1 to 3 of 3

make button single click to avoid user double click

  1. #1
    Registered User
    Join Date
    05-09-2015
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    19

    make button single click to avoid user double click

    Hi I have been debugging a program that uses a button to activate a selected macro. If the user double clicks the button the macro will run twice and boy what a mess. Is there a way to make the button respond only to the first click or code to have the macro ignore the second click?

    Help will be much appreciated.

    Muzza1

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: make button single click to avoid user double click

    Sounds like the user is clicking the button twice rather than "double clicking"

    maybe a msgbox at the start of the code to ask user if they want to run the code
    or a msgbox at the end of the code to let the user know the code has run

    ergo.. taking the ability for the user to running the macro twice in succession without them wanting to
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: make button single click to avoid user double click

    You could use this approach. The user will click the button only once.
    Please Login or Register  to view this content.
    Another approach might be some variation on this:
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ 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] Add 1 to target on double click, add 0.5 on shift + double click
    By MarmaladeLover in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-26-2015, 06:59 AM
  2. Changing cell properties with double click, then revert with another double click
    By mweber2525 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-01-2014, 01:40 PM
  3. [SOLVED] Double Click Spin Button
    By adam2308 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2012, 02:40 PM
  4. [SOLVED] how to avoid null/double click
    By var in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2012, 09:55 AM
  5. Double Click Button
    By joshygoodboy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-03-2010, 03:05 AM
  6. userform label double-click goes to click event
    By John Paul Fullerton in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-19-2006, 01:00 PM
  7. Replies: 4
    Last Post: 08-02-2005, 09:05 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