How to select Cell address between Specified Range
and here is another interpretation:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Selection, _
Range("A1:A10")) Is Nothing Then
MsgBox Target.Address
End If
End Sub
Right click on the sheet tab and select view code - then paste in the above.
--
Regards,
Tom Ogilvy
"Max" wrote:
If user click between Range("A1:A10") only then i would like to return the
address of the selected cell for calculation purpose. Is it possible in vba ?
|