Hi Tony, try this code:
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
    'Adjust to your range
    If Intersect(Target, Range("A2:A25")) Is Nothing Then Exit Sub
    MsgBox "macro" 'your code
End Sub


Tony Bender wrote:
> Is there a way to set a cell so when the user clicks on it, it
> launches a specified macro?
>
> If so can you show me how it's done?
>
> Thank you,

--~--~---------~--~----~------------~-------~--~----~
Visit the blog to download Excel tutorials at 
http://www.excel-macros.blogspot.com

To post to this group, send email to excel-macros@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/excel-macros?hl=en

Visit & Join Our Orkut Community at 
http://www.orkut.com/Community.aspx?cmm=22913620

Visit the blog to download Excel tutorials at 
http://www.excel-macros.blogspot.com

To Learn VBA Macros Please visit http://www.vbamacros.blogspot.com

To see the Daily Excel Tips, Go to:
http://exceldailytip.blogspot.com
-~----------~----~----~----~------~----~------~--~---

Reply via email to