View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Kevin Smith[_2_] Kevin Smith[_2_] is offline
external usenet poster
 
Posts: 47
Default show row number in one fixed cell in reference to your cursor pos.

Hello,

You can use this code in the Sheet Module

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Range("A1").Value = ActiveCell.Row
End Sub
--
Kevin Smith :o)


"Howard" wrote:

For example,
key in this formula cell("row") in cell A1
when you move your cursor to Cell B9
cell A1 will display "9" = row 9 where ur cursor being placed at