Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / February 2008

Tip: Looking for answers? Try searching our database.

cursor reference

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
erables40@gmail.com - 07 Feb 2008 22:30 GMT
I want to know if this is possible? If I have text in column A can I
scroll down the text and in let's say in cell B1 it shows the text of
where my cursor is? So if my cursor is on cell A5 B1 shows the text in
A5 if I scroll down and stop on A15 cell B1 shows the text in A15.
Tried searching but couldn't find anything.
TIA
Gary''s Student - 07 Feb 2008 23:36 GMT
Very difficult if you mean a mouse hover (like viewing a comment).  Easy if
you mean clicking on a cell or using the arrow keys to navigate up & down.

Put the following event macro in the worksheet code area:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Set r = Range("A:A")
If Intersect(r, Target) Is Nothing Then Exit Sub
Application.EnableEvents = False
Range("B1").Value = Target.Value
Application.EnableEvents = True
End Sub

Signature

Gary''s Student - gsnu2007d

> I want to know if this is possible? If I have text in column A can I
> scroll down the text and in let's say in cell B1 it shows the text of
> where my cursor is? So if my cursor is on cell A5 B1 shows the text in
> A5 if I scroll down and stop on A15 cell B1 shows the text in A15.
> Tried searching but couldn't find anything.
> TIA
Tyro - 07 Feb 2008 23:47 GMT
You could put some VBA code in your worksheet. Press Alt+F11 to activate
VBA. Select the worksheet name in the workbook where you want the code and
double click on it and paste the following code in the code window.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
  If Intersect(Target, Range("a:a")) Is Nothing Then Exit Sub
  Range("b1") = Target
End Sub

Then press Alt+F11 to return to your worksheet.

If your cursor is in Column A you will see the value of the cell in Column A
appear in B1

>I want to know if this is possible? If I have text in column A can I
> scroll down the text and in let's say in cell B1 it shows the text of
> where my cursor is? So if my cursor is on cell A5 B1 shows the text in
> A5 if I scroll down and stop on A15 cell B1 shows the text in A15.
> Tried searching but couldn't find anything.
> TIA
erables40@gmail.com - 07 Feb 2008 23:57 GMT
> You could put some VBA code in your worksheet. Press Alt+F11 to activate
> VBA. Select the worksheet name in the workbook where you want the code and
[quoted text clipped - 20 lines]
> > Tried searching but couldn't find anything.
> > TIA

beautiful exactly what I needed
Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.