ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   operation macro by clicking on cell (https://www.excelbanter.com/excel-programming/381258-re-operation-macro-clicking-cell.html)

Corey

operation macro by clicking on cell
 
Right click on the Sheet Tab and Place this in the code area:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
With Sheet1
If Not Intersect(Target, Me.Range("A1:A5")) Is Nothing Then ' Chnage the
Range to suit what cell you want to Click on
ActiveCell.Select
'Place your macro ro CALM macro here
End If
End With
End Sub


adjust to suit

Corey....



"shlomit" wrote in message
...
Hi,

I want to play macro by clicking on cell.
Can I do it?

Thanks,
Shlomit





All times are GMT +1. The time now is 11:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com