С удобочитаемостью
Полный
Sub Workload_Schedule_Conditional_Formatting()
Dim LastRowWS As Long, LastRowPS As Long, rng As Range, _
ProjectRange As Range
With Worksheets("Project_Summary")
LastRowPS = .Range("B" & .Rows.Count).End(xlUp).Row
Set ProjectRange = .Range(Cells(2, 1), Cells(LastRowPS, 2))
End With
With Worksheets("Workload_Schedule")
LastRowWS = .Range("A" & .Rows.Count).End(xlUp).Row
Set rng = .Range(Cells(4, 3), Cells(LastRowWS, 7))
End With
' Other code for validation list.
End Sub
Короткий
Sub Workload_Schedule_Conditional_Formatting_Short()
Dim rng As Range, ProjectRange As Range
With Worksheets("Project_Summary")
Set ProjectRange = .Range(Cells(2, 1), _
Cells(.Range("B" & .Rows.Count).End(xlUp).Row, 2))
End With
With Worksheets("Workload_Schedule")
Set rng = .Range(Cells(4, 3), _
Cells(.Range("A" & .Rows.Count).End(xlUp).Row, 7))
End With
' Other code for validation list.
End Sub