Skip to main content

How to quickly crosshair highlight active cell in Excel?

If there are multiple columns and rows data in a worksheet, have you imaged when you activate a cell, its relative column and row are highlighted? For example, click at F11, and the column F and row 11 are highlighted at the same time as below screenshot shown. Here this article, introduces the quick tricks can to help you crosshair highlight the active cell in Excel.
doc crosshair highlight 1

Cross highlight active cell with VBA

Cross highlight active cell with Kutools for Excel good idea3


Cross highlight active cell with VBA

In Excel, there is no built-in function can help you to crosshair highlight active cell, but here I introduce a VBA can help you to cross highlight the row and column of the active cell.

1. Press Alt + F11 keys to open Microsoft Visual Basic for Applications window.

2. Then in the Project pane, double click at the sheet you want to apply this VBA, and then copy and paste below VBA code to the right script. See screenshot:

Tip: If the Project pane is hidden, click View > Project Explorer in Microsoft Visual Basic for Applications window to display it.

VBA: Crosshair highlight active cell.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'UpdatebyExtendoffice6/1/2016
    Application.ScreenUpdating = False
    With Target
        .Worksheet.Cells.Interior.ColorIndex = 0
        .EntireRow.Interior.Color = vbYellow
        .EntireColumn.Interior.Color = vbYellow
    End With
    Application.ScreenUpdating = True
End Sub
doc crosshair highlight 2

3. Then save and close the VBA, and now when you active a cell, its relative row and column are highlighted.
doc crosshair highlight 3

If you want to highlight the active cell only, you can use the following VBA.

VBA: Highlight active cell you select

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'UpdatebyExtendoffice6/1/2016
    Application.ScreenUpdating = False
    Target.Worksheet.Cells.Interior.ColorIndex = 0
    Target.Interior.Color = vbYellow
    Application.ScreenUpdating = True
End Sub

Note: In above VBA codes, the ColorIndex can change as you want.


Cross highlight active cell with Kutools for Excel

If you are not familiar with VBA, you can try to apply Kutools for Excel’s Reading Layout utility to quickly crosshair highlight active cell.

Kutools for Excel, with more than 300 handy functions, makes your jobs more easier. 

After free installing Kutools for Excel, please do as below:

Click Kutools > Reading Layout to enable the Reading Layout utility. See screenshot:
doc crosshair highlight 4

Note:

1. Click Kutools > Reading Layout again to disable this utility.

2. Click Kutools > Reading Layout > Reading Layout Settings to specify the shapes, styles and colors as you need in the Reading Layout Settings dialog. See screenshot:
doc crosshair highlight 5

Tip: This utility applies to the whole workbook.

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (2)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi. Can you please help with a VBA Code that doesn't remove the cell formatting or the previous colored cells.
This comment was minimized by the moderator on the site
Hi, the VBA code cannot satisfy your need, I suggest you try Kutools for Excel.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations