I got this macro that checks all the sheets in the array and color the range M8 which has values on. It works but stops after 38 cell and doesn´t colour any cells.
Can someone please have a look and advice where is somthing wrong.
Thanks in advance
Sub TestColour2()
Dim st As Sheets
Dim x As Integer
Dim wsh As Worksheet
Sheets(Array("T1", "E2", "S3", "M4", "S5", "F5")).Select
    For Each wsh In ActiveWindow.SelectedSheets
        Application.ScreenUpdating = False
       'st.Select
        NumRows = Range("M8", Range("M8").End(xlDown)).Rows.Count
        Range("M8").Select
        For x = 1 To NumRows
            ActiveCell.Interior.ColorIndex = 35
            ActiveCell.Offset(1, 0).Select
        Next x
    Next wsh
Application.ScreenUpdating = True
End Sub
 
     
    