🚀 Want to make your Excel sheets more interactive? In this tutorial, I’ll show you how to highlight the selected row and column in Excel using a simple VBA script! Perfect for improving visibility and making spreadsheets look professional.
📌 VBA Code Used in This Video:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim ws As Worksheet
Set ws = Me
ws.Cells.Interior.ColorIndex = xlNone
If Target.Cells.Count = 1 Then
ws.Rows(Target.Row).Interior.Color = RGB(255, 255, 153) 'Light Yellow
ws.Columns(Target.Column).Interior.Color = RGB(255, 255, 153) 'Light Yellow
End If
End Sub
🔹 What You'll Learn in This Video:
✅ How to open the VBA editor
✅ How to create an event-driven macro
✅ How to highlight the selected row and column in Excel
✅ How to make your spreadsheets look cleaner and more interactive
💬 Have questions? Drop them in the comments!
📲 Follow me for more Excel & VBA tricks:
👉 Instagram: / excel_vba_automation
👉 TikTok: / excel.jacob
👀 Don’t forget to LIKE 👍, SUBSCRIBE 🔔, and SHARE this video with your Excel-loving friends!