JessWhyCuh
New Member
- Joined
- Jul 10, 2018
- Messages
- 15
Hello all,
I am trying to read the style of the cells in another worksheet to highlight cells in the active worksheet. So far I have the code below checking the first row, but I need it to go through all the rows (r) then check the cells in each column of that row (col).
Thanks in advance!
I am trying to read the style of the cells in another worksheet to highlight cells in the active worksheet. So far I have the code below checking the first row, but I need it to go through all the rows (r) then check the cells in each column of that row (col).
Code:
Private Sub Worksheet_Activate()
For i = 1 To r
For j = 1 To col
If Worksheets("Prod Lifecycle").Range("J5").Cells(1, j).Style = "Bad" Then
Worksheets("Summary").Range("H3").Style = "Bad"
End If
Next j
Next I
End Sub
Thanks in advance!