View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 390
Default How to select Cell address between Specified Range

Thanx JW,
Your solution solve my problem.


"JW" wrote:

Look at the Selection_Change event of the worksheet where you want
this to happen:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("A1:A10")) _
Is Nothing Then MsgBox Target.Address
End Sub

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 ?