+ Reply to Thread
Results 1 to 3 of 3

Double-Click Cell and Execute Macro

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-04-2014
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    366

    Double-Click Cell and Execute Macro

    Hello,

    Here is a tough one.

    I want to be able to do the following:

    When Double-Clicking ANY Cell in COLUMN A only, a Macro executes.
    Thank You,

    EnigmaMatter

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

    Re: Double-Click Cell and Execute Macro

    You could put this in the code module for the sheet in question.
    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
        If Target.Column = 1 Then Cancel = True: Call myMacro
    End Sub
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Contributor
    Join Date
    02-04-2014
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    366

    Re: Double-Click Cell and Execute Macro

    Works perfectly.

    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. Double Click on cell to run Macro
    By armand36 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2014, 12:39 PM
  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. Double-click on cell to run macro
    By cad1llac in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-30-2010, 04:57 AM
  4. How can I use VB code to execute macro when double-clicking cell?
    By JDay01 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2006, 10:20 AM
  5. Click on graph bar to execute a double-click in a pivot table cell
    By Bill_F_Lyle@fpl.com in forum Excel Charting & Pivots
    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