Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mike G - D.C.
 
Posts: n/a
Default Load active cell data via a function

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
  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

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

End Sub


"Mike G - D.C." wrote in message
...
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



  #3   Report Post  
hgrove
 
Posts: n/a
Default


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 within
the entire document/workbook. Workbook_SheetSelectionChange would be
more appropriate.


--
hgrove
------------------------------------------------------------------------
hgrove's Profile: http://www.excelforum.com/member.php...o&userid=11432
View this thread: http://www.excelforum.com/showthread...hreadid=319888

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
Unable to set the active cell from VBA HMS New Users to Excel 1 December 7th 04 09:56 PM
copy a cell value not its function KC Mao Excel Discussion (Misc queries) 2 December 4th 04 04:30 AM
Retrieve last cell with data JimDandy Excel Worksheet Functions 2 November 20th 04 06:50 PM
continuous cell function milljaso Excel Worksheet Functions 1 October 27th 04 10:21 PM


All times are GMT +1. The time now is 06:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"