Use the Worksheet 's SelectionChange Event In your Project window
And do something like thi
Private Sub Worksheet_SelectionChange(ByVal Target As Range
Set MyRange = Range("A1:D20"
Set isect = Application.Intersect(MyRange,(Target.Address)
If isect Is Nothing Then Exit Su
' Put what your code is here
End Su
anytime a cell is selected this code will fire but fill only Run your code if its within your range
----- Simon Lloyd wrote: ----
I want too start a macro when a cell in a certain range is left clicke
or selected by navigating to it using the arrow keys.....i.e if cell i
selected in range xx:yy then run macro or when cell in range i
highlighted by arrow keys.im new to VBA so an idiots guide on how to d
this would be very well apreciated
Thanks in advance
Simo
--
Message posted from
http://www.ExcelForum.com