Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am trying to dynamically get the current cell address or the contents of
that cell in to one fixed cell (cell A1). When I move the cursor within the worksheet, I would like the value of the cell A1 to reflect the new position of the cursor cell (cell address) or the contents of that cell. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Put the following in worksheet code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range) Range("A1").Value = Target.Address End Sub -- Gary's Student "OB" wrote: I am trying to dynamically get the current cell address or the contents of that cell in to one fixed cell (cell A1). When I move the cursor within the worksheet, I would like the value of the cell A1 to reflect the new position of the cursor cell (cell address) or the contents of that cell. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Paste this into the Sheet Module of the sheet in question:
Private Sub Worksheet_SelectionChange(ByVal Target As Range) Range("A1") = Cells(Target.Row, Target.Column).Address(0, 0) End Sub You may also want to do a Freeze Pane in Cell A2; HTH "OB" wrote: I am trying to dynamically get the current cell address or the contents of that cell in to one fixed cell (cell A1). When I move the cursor within the worksheet, I would like the value of the cell A1 to reflect the new position of the cursor cell (cell address) or the contents of that cell. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
need Excel cell to show value, not formula | Excel Worksheet Functions | |||
How do I show the address of hyperlink to another cell in Excel ? | Excel Discussion (Misc queries) | |||
How do I show the current Excel filepath in the toolbar line? | Excel Discussion (Misc queries) | |||
Instead of a negative number, I'd like to show zero... | Excel Worksheet Functions | |||
how do i set up a cell in excel so that it shows the current date | Excel Worksheet Functions |