LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Launch Macro By Double Clicking

On May 5th I wrote a question about how to launch an Excel Macro by double
clicking on a cell. I have tried what was suggested, but I still cannot make
it work. Any further help would be greatly appreciated.

I have the following code in the "View Code" area of the worksheet.

Sub aaa()
Application.Events = True
End Sub

Private Sub Worksheet_BeforeDoubleClick_(ByVal Target As Range, Cancel As
Boolean)
If Target.Address = $E$5 Then
Cancel=True
Call Find2
End IF
End Sub

Macros are enabled.

When I double click on E5 in the worksheet that I put the code into, nothing
happens, except the cell E5 is selected.

I have a button on the same sheet that runs Macro Find2 when clicked.

I am running Windows XP, Excel OFFXL7

Thank-you

Jim Walsh
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Launching a Macro bt Double Clicking jswalsh33 Excel Programming 3 May 5th 09 03:04 PM
Launch an excel hyperlink programatically without clicking [email protected] Excel Programming 3 March 21st 07 03:51 AM
How can I use VB code to execute macro when double-clicking cell? JDay01 Excel Programming 2 June 13th 06 03:12 PM
Launching a macro by double-clicking on active cell aca Excel Programming 5 August 4th 05 10:08 PM
Macro launch - Button vs Manual launch , has different results. Wayne Excel Programming 4 February 23rd 05 11:33 AM


All times are GMT +1. The time now is 01:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"