Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default Is this possible? Click a cell to run a macro

I would like the users to be able to run a macro but not from the
menu bar. Is it possible for users to click a cell to run a macro?
If not, what's the closest thing to it? Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default Is this possible? Click a cell to run a macro

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

If Target.Address() = "$A$1" Then

Call "myMacro"

End If


End Sub


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default Is this possible? Click a cell to run a macro



| Private Sub Worksheet_SelectionChange(ByVal Target As Range)
|
| If Target.Address() = "$A$1" Then
|
| Call "myMacro"
|
| End If
|
|
| End Sub
|
|
1. the code above should be put in sheet area in VBA editor

2. of course "myMacro" is the name of a macro so write it without quotation
marks


Reply
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
Click in cell to run macro alistew Excel Discussion (Misc queries) 7 February 20th 07 05:03 PM
Macro on cell click?? Jim Thomlinson[_5_] Excel Programming 0 February 6th 06 09:33 PM
Macro on cell click?? Gary''s Student Excel Programming 0 February 6th 06 09:29 PM
Run Macro on Cell Click.. CliffHanger9 Excel Programming 0 November 17th 04 07:46 PM
Run Macro on Cell Click.. scottymelloty[_12_] Excel Programming 1 November 17th 04 06:15 PM


All times are GMT +1. The time now is 04:34 AM.

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

About Us

"It's about Microsoft Excel"