Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
want cell J1 to reflect the location of acitivecell.value
would like cell J1 to reflect the row the activecell is in with the value of
column A. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
want cell J1 to reflect the location of acitivecell.value
I think this worksheet code does what you want...
Private Sub Worksheet_SelectionChange(ByVal Target As Range) Range("J1").Value = Cells(ActiveCell.Row, 1).Value End Sub Rick "Gordy99" wrote in message ... would like cell J1 to reflect the row the activecell is in with the value of column A. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
want cell J1 to reflect the location of acitivecell.value
Thanks, I'll try it.
"Rick Rothstein (MVP - VB)" wrote: I think this worksheet code does what you want... Private Sub Worksheet_SelectionChange(ByVal Target As Range) Range("J1").Value = Cells(ActiveCell.Row, 1).Value End Sub Rick "Gordy99" wrote in message ... would like cell J1 to reflect the row the activecell is in with the value of column A. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
want cell J1 to reflect the location of acitivecell.value
This is the code I put in:
Private Sub worksheet_selectionchange(ByVal target As Range) Range("j1").Value = Cells(ActiveCell.Row, 1).Value End Sub Can't find it on the macro list and I don't see it running. Gordy "Rick Rothstein (MVP - VB)" wrote: I think this worksheet code does what you want... Private Sub Worksheet_SelectionChange(ByVal Target As Range) Range("J1").Value = Cells(ActiveCell.Row, 1).Value End Sub Rick "Gordy99" wrote in message ... would like cell J1 to reflect the row the activecell is in with the value of column A. |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
want cell J1 to reflect the location of acitivecell.value
It is not a macro... it is a worksheet event procedure. Every time a new
cell becomes active, the code will "do its thing", automatically. The procedure should be placed in the worksheet's code window, NOT in a Module nor in a UserForm. Rick "Gordy99" wrote in message ... This is the code I put in: Private Sub worksheet_selectionchange(ByVal target As Range) Range("j1").Value = Cells(ActiveCell.Row, 1).Value End Sub Can't find it on the macro list and I don't see it running. Gordy "Rick Rothstein (MVP - VB)" wrote: I think this worksheet code does what you want... Private Sub Worksheet_SelectionChange(ByVal Target As Range) Range("J1").Value = Cells(ActiveCell.Row, 1).Value End Sub Rick "Gordy99" wrote in message ... would like cell J1 to reflect the row the activecell is in with the value of column A. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
one cell does not reflect a sum | Excel Worksheet Functions | |||
Reflect cell contents into another worksheet | Excel Discussion (Misc queries) | |||
Reflect cell contents into another worksheet | Excel Discussion (Misc queries) | |||
Formula won't reflect new cell data | Excel Worksheet Functions | |||
Can I link a cell to reflect a worksheet name? | Excel Discussion (Misc queries) |