ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cell to display text from cell on focus?? (https://www.excelbanter.com/excel-programming/376808-cell-display-text-cell-focus.html)

[email protected]

Cell to display text from cell on focus??
 
Hello

Is it possible to have a cell in a worksheet to display all contents of
whichever cell has focus?

Thanks


Otto Moehrbach

Cell to display text from cell on focus??
 
Paste both of these macros into the sheet module of your sheet. To access
that module, right-click on the sheet tab, select View Code, "X" out of the
module to return to your sheet. HTH Otto
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
Range("A1").Value = Target.Value
Application.EnableEvents = True
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Range("A1").Value = Target.Value
End Sub

wrote in message
oups.com...
Hello

Is it possible to have a cell in a worksheet to display all contents of
whichever cell has focus?

Thanks




[email protected]

Cell to display text from cell on focus??
 
Super - this is exactly what I was looking for. Thanks !



All times are GMT +1. The time now is 05:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com