WebApr 30, 2024 · Code: Private Sub Worksheet_SelectionChange (ByVal Target As Range) Application.EnableEvents = False Union (Target.EntireRow, Target.EntireColumn).Select Intersect (Target.EntireRow, Target.EntireColumn).Activate Application.EnableEvents = True End Sub. Click to expand... Hey, I tried this code but it doesnt seem to work for excel 2013. WebJan 20, 2024 · Top Contributors in Excel: HansV MVP - Jim Gordon MVP - Andreas Killer - Bernie Deitrick - Ashish Mathur Choose where you want to search below Search Search the Community
How to Auto-Highlight the Row and Column of an Active Cell in Excel
WebJun 3, 2024 · Below are the only two lines of code required to trigger the highlights to reflect the newly selected row and column. Private Sub Worksheet_SelectionChange(ByVal Target As Range) 'Use Named Ranges to track the selected row & column [Sheet1_Row] = Target.Row [Sheet1_Col] = Target.Column End Sub VBA Module Code WebFeb 13, 2024 · 5 Easy Ways to Highlight Selected Cells in Excel. Method 1: Using Define Name. Method 2: Using Format Cells Feature. Method 3: Using Cell Styles. Method 4: … porthos fu
Highlight the Active Row and Column in a Data Range in Excel …
WebJul 8, 2024 · Whenever you want the row and column of the active cell to be highlighted, you have to press F9. The best part of this method is that it doesn’t require VBA. It doesn’t require you to modify the formula either. Anyone who follows the step can do this. You might also be interested in 5 Types of Graphs to Create with REPT function WebJan 21, 2024 · Sub MoveActive () Worksheets ("Sheet1").Activate Range ("A1:D10").Select ActiveCell.Value = "Monthly Totals" ActiveCell.Offset (0, 1).Activate End Sub Selecting the Cells Surrounding the Active Cell The CurrentRegion property returns a range or 'island' of cells bounded by blank rows and columns. WebFeb 15, 2024 · 3 Methods to Highlight Active Row in Excel 1. Highlight Active Row Using Conditional Formatting 1.1. Apply Conditional Formatting. To highlight active row using conditional formatting, first, Select your entire … optic milling