Share via

Highlight cursor position

Anonymous
2011-02-23T09:14:33+00:00

Excel 2007: Is there any way to high light the cursor position in a way that at a glance it is in the right place prior to entering data? I am sure that I have seen screen shots where the column and row is gently filled with a colour thus visually showing the cursor position.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2011-02-23T09:50:50+00:00

As long as you do not have colored cells on the worksheet, maybe you can use this simple event code to do what you want...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

    Cells.Interior.ColorIndex = 0

    Union(Target.EntireColumn, Target.EntireRow).Interior.ColorIndex = 36

End Sub

To install this code, go to the worksheet you want to have this functionality, right click its name tab and select View Code from the popup menu that appears, then copy paste the above code into the code window that opened up. That's it, go back to the worksheet and click around.


NOTE: Please mark the message or messages (yes, you can mark more than one) that answer your question as the "Answer" so that others will know your question has been resolved.

Was this answer helpful?

20+ people found this answer helpful.
0 comments No comments

Answer accepted by question author

Anonymous
2011-02-23T09:26:14+00:00

Hi,

Maybe you've seen this addin

http://www.cpearson.com/excel/rowliner.htm


If this post answers your question, please mark it as the Answer.

Mike H

Was this answer helpful?

10 people found this answer helpful.
0 comments No comments

7 additional answers

Sort by: Most helpful
  1. Anonymous
    2016-08-25T19:27:03+00:00

    Thank you for the code, Rick!  Works great!

    I modified it slightly for my needs to highlight the cursor row only (and not the column).  Here is the modified Row Only code:

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)

         Cells.Interior.ColorIndex = 0

         Target.EntireRow.Interior.ColorIndex = 36

     End Sub

    Thanks again!

    Mike

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2017-02-26T16:20:49+00:00

    Not helpful.

    I remember years ago you could change the color of the cursor so that you could easily see where it was located when entering data. This should be some easy, basic.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2011-02-23T17:19:40+00:00

    Thanks Mike and Rick. RowLiner seems to be the answer. I'll look at the code option on a braver day:)

    Adam

    Was this answer helpful?

    0 comments No comments