Apr 20, 2011 #1 petarr Technical User Apr 19, 2011 4 FR Thats it... how can I start a macro with a mouse click?
Apr 20, 2011 #2 macropod Technical User Mar 9, 2004 3,045 AU What application? Cheers Paul Edstein [MS MVP - Word] Upvote 0 Downvote
Apr 20, 2011 #3 S SkipVought Programmer Dec 4, 2001 47,491 US Hi, Put a button in you application that calls the macro on the click event? Skip, Just traded in my old subtlety... for a NUANCE! Upvote 0 Downvote
Hi, Put a button in you application that calls the macro on the click event? Skip, Just traded in my old subtlety... for a NUANCE!
Apr 20, 2011 Thread starter #4 petarr Technical User Apr 19, 2011 4 FR ops sry... its Excel 2007 I'd like to have an option button so when I select the option button, I'd like to run the macro with any click, anywhere For exemple I select Option button 1 and if I select a cell in the range A120, the macro is eecuted I hope I was clear Upvote 0 Downvote
ops sry... its Excel 2007 I'd like to have an option button so when I select the option button, I'd like to run the macro with any click, anywhere For exemple I select Option button 1 and if I select a cell in the range A120, the macro is eecuted I hope I was clear
Apr 20, 2011 Thread starter #5 petarr Technical User Apr 19, 2011 4 FR For eemple any cell i select in the range becomes green and a text appears Upvote 0 Downvote
Apr 20, 2011 #6 S SkipVought Programmer Dec 4, 2001 47,491 US You need at least two Option Buttons. Then use the Worksheet_SelectionChange event to run your macro. What code do you have so far? Have you placed a Option Buttons on your sheet? Are you useing Control Toolbox or Forms controls? Skip, Just traded in my old subtlety... for a NUANCE! Upvote 0 Downvote
You need at least two Option Buttons. Then use the Worksheet_SelectionChange event to run your macro. What code do you have so far? Have you placed a Option Buttons on your sheet? Are you useing Control Toolbox or Forms controls? Skip, Just traded in my old subtlety... for a NUANCE!
Apr 20, 2011 Thread starter #7 petarr Technical User Apr 19, 2011 4 FR Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Not Intersect(Target, Range("B6:O11")) Is Nothing Then ... I use option buttons Upvote 0 Downvote
Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Not Intersect(Target, Range("B6:O11")) Is Nothing Then ... I use option buttons