I'm currently using conditional formatting and a simple script to highlight whatever cell I have selected. I am wondering if there is a better command to use than Worksheet_SelectionChange.
The only issue I have is when using "Find" to search the workbook, it will only select the first result found on each worksheet. Any subsequent results are not highlighted when you click "find next".
I'd like highlight to follow the results.
The formatting I am using is =ROW()=CELL("row")
My script is :
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
With ThisWorkbook.Names("HighlightRow")
.Name = "HighlightRow"
.RefersToR1C1 = "=" & ActiveCell.Row
If Application.CutCopyMode = False Then
Application.Calculate
End If
End With
End Sub
Thanks
The only issue I have is when using "Find" to search the workbook, it will only select the first result found on each worksheet. Any subsequent results are not highlighted when you click "find next".
I'd like highlight to follow the results.
The formatting I am using is =ROW()=CELL("row")
My script is :
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
With ThisWorkbook.Names("HighlightRow")
.Name = "HighlightRow"
.RefersToR1C1 = "=" & ActiveCell.Row
If Application.CutCopyMode = False Then
Application.Calculate
End If
End With
End Sub
Thanks