Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How to get the active cell address?
eg. Click A1 on Excel sheet1 and VBA code get this active cell value "A1" and display in A2 cell. Thanks in advance. d |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try it!
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range) Dim celAdr As String Dim lRow As Long, pos As Long, i As Long celAdr = Target.Address lRow = Target.Row + 1 Do pos = InStr(pos + 1, celAdr, "$") If pos 0 Then i = pos Loop Until pos = 0 MsgBox Left(celAdr, i) & lRow End Sub losmac Uzytkownik "d" napisal w wiadomosci ... How to get the active cell address? eg. Click A1 on Excel sheet1 and VBA code get this active cell value "A1" and display in A2 cell. Thanks in advance. d |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
following the active cell address without recalc | Excel Worksheet Functions | |||
How can I use the active cell address as a value | Excel Discussion (Misc queries) | |||
active cell address with worksheet function | Excel Worksheet Functions | |||
Get Address of Active Cell | Excel Discussion (Misc queries) | |||
Find address of active cell | Excel Worksheet Functions |