Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default how to display my cursor cell content in another cell....

hi
is there a function that can display the content of whatever cell my cursor
is currently in? for example, A1="Dog", A2="Cat", and A3="Horse". i want cell
D1 to display "Dog" when my cursor is in cell A1, "Cat" when i move my cursor
to A2, and "Horse" when i move my cursor to A3......
thanks
--
dh13134
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default how to display my cursor cell content in another cell....

Right click sheet tabview codeinsert this. Now when you select ANY cell it
will show in d1. SO, you may want to restrict by using the second one
instead.

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

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, Range("a1:a10")) Is Nothing Then Exit Sub
Range("d12").Value = Target
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"dh13134" wrote in message
...
hi
is there a function that can display the content of whatever cell my
cursor
is currently in? for example, A1="Dog", A2="Cat", and A3="Horse". i want
cell
D1 to display "Dog" when my cursor is in cell A1, "Cat" when i move my
cursor
to A2, and "Horse" when i move my cursor to A3......
thanks
--
dh13134


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default how to display my cursor cell content in another cell....

VERY, VERY, COOL!!!

thanks much!!
--
dh13134


"Don Guillett" wrote:

Right click sheet tabview codeinsert this. Now when you select ANY cell it
will show in d1. SO, you may want to restrict by using the second one
instead.

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

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, Range("a1:a10")) Is Nothing Then Exit Sub
Range("d12").Value = Target
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"dh13134" wrote in message
...
hi
is there a function that can display the content of whatever cell my
cursor
is currently in? for example, A1="Dog", A2="Cat", and A3="Horse". i want
cell
D1 to display "Dog" when my cursor is in cell A1, "Cat" when i move my
cursor
to A2, and "Horse" when i move my cursor to A3......
thanks
--
dh13134



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
Why does my cell content display as '############'? Mark Excel Discussion (Misc queries) 4 July 22nd 08 07:07 PM
restrict cell content display Stefi Excel Discussion (Misc queries) 3 December 6th 07 02:07 PM
display part of the cell content linda Excel Discussion (Misc queries) 4 August 28th 07 03:02 AM
display content of linked cell Lynn Excel Worksheet Functions 3 January 5th 07 05:04 PM
How to click on a cell and have the content of the cell display in a different cell [email protected] Excel Worksheet Functions 0 June 6th 06 03:05 PM


All times are GMT +1. The time now is 12:14 AM.

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

About Us

"It's about Microsoft Excel"