Load active cell data via a function

M

Mike G - D.C.

Hello-
Is there anyway to set up a cell to display whatever is within the active
cell? In other words, I'm looking to setup A1 to display data from whichever
cell is currently active/selected within the document. Is this possible?
Thanks
 
N

N Harkawat

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells(1, 1) = ActiveCell.Value

End Sub
 
H

hgrove

N Harkawat wrote...
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells(1, 1) = ActiveCell.Value
End Sub
...

Quibble: this would only work within a particular worksheet, not withi
the entire document/workbook. Workbook_SheetSelectionChange would b
more appropriate
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top