Hi,
I currently have a macro that opens a workbook in a directory then formats it accordingly. My question is, I want to add a Worksheet_SelectionChange function into Sheet1 of that newly opened workbook to highlight the entire row of the selected cell when the user looks at it. How can I call this in the original macro that opened the workbook? Thanks in advance!
I currently have a macro that opens a workbook in a directory then formats it accordingly. My question is, I want to add a Worksheet_SelectionChange function into Sheet1 of that newly opened workbook to highlight the entire row of the selected cell when the user looks at it. How can I call this in the original macro that opened the workbook? Thanks in advance!
Code:
[/COLOR]Private Sub Worksheet_SelectionChange(ByVal Target As Range)
With Target
Cells.Interior.ColorIndex = xlColorIndexNone
.EntireRow.Interior.ColorIndex = 8
End With
End Sub[COLOR=#333333]