+ Reply to Thread
Results 1 to 4 of 4

Double click to run a macro

Hybrid View

  1. #1
    Registered User
    Join Date
    12-05-2005
    Location
    WA
    Posts
    83

    Double click to run a macro

    I need to have the macro run only with a double click instead of a single. Is there a simple way to do this?

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Are you talking about double-clicking on a command button? Yes, that is possible. You can insert your code in the following event handler procedure (assuming the button is CommandButton1):
    Private Sub CommandButton1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
    
    ' Your code here
    
    End Sub
    HTH

    Jason

  3. #3
    Registered User
    Join Date
    12-05-2005
    Location
    WA
    Posts
    83
    Thanks. Much appreciated.

  4. #4
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    No problem.

+ 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