+ Reply to Thread
Results 1 to 2 of 2

double click

  1. #1
    Registered User
    Join Date
    07-14-2004
    Posts
    22

    double click

    is there anyway to execute a macro when the user double clicks a cell.

    For instance I want to unhide a line if a certain cell is double clicked.

    Thanks

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Bforster1,

    Use the Worksheet BeforeDoubleClick Event to test if the target cell's address matches what you are looking for. Here is a simple example that beeps when the cell F10 is double clicked.

    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Excel.Range, Cancel As Boolean)
    If Target.Address = "$F$10" Then Beep
    End Sub


    Hope this helps,
    Leith Ross

+ 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