PC Review


Reply
Thread Tools Rate Thread

cursor reference

 
 
erables40@gmail.com
Guest
Posts: n/a
 
      7th Feb 2008
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
 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      7th Feb 2008
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

--
Gary''s Student - gsnu2007d


"(E-Mail Removed)" wrote:

> 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
>

 
Reply With Quote
 
Tyro
Guest
Posts: n/a
 
      7th Feb 2008
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

<(E-Mail Removed)> wrote in message
news:04ea6fd7-b537-4645-a446-(E-Mail Removed)...
>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



 
Reply With Quote
 
erables40@gmail.com
Guest
Posts: n/a
 
      7th Feb 2008
On Feb 7, 6:47 pm, "Tyro" <T...@hotmail.com> wrote:
> 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
>
> <erable...@gmail.com> wrote in message
>
> news:04ea6fd7-b537-4645-a446-(E-Mail Removed)...
>
> >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


beautiful exactly what I needed
Thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
show row number in one fixed cell in reference to your cursor pos. Howard Microsoft Excel Misc 5 9th Sep 2009 04:19 PM
No footnote tip displayed when cursor points at reference number =?Utf-8?B?amVudGVy?= Microsoft Word Document Management 7 18th May 2009 04:33 AM
Setting Wait cursor without a reference to main form. info@devdept.com Microsoft Dot NET 12 19th Dec 2006 11:14 AM
I want to change a cell reference based on where the cursor is. =?Utf-8?B?N3JlZG1ldGFs?= Microsoft Excel Programming 1 15th Dec 2005 07:42 AM
Cursor Movement vs. Range Reference Jeff Microsoft Excel Programming 1 10th Dec 2004 05:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:53 AM.