would i need to enter each range individually
It really depends on what you want to do. If you want it to trigger on a worksheet_change event where when you enter in a time into F, for example, it will look at column G and do code based upon its value then yes, you will need to enter each range individually. If you wanted to run a subroutine to look at column G and every 7 columns after that to see if the value is less than 12 you would not need to enter each range individually. The flaw to the subroutine is that it will be applied to all employees not just the one that has had time entered (well thats not entirely true but the coding gets a little time consuming for a free project).
Sorry if my info is a bit hopeless im just starting out
No worries. But keep in mind if your info is "a bit hopeless", my ability to help you is even more hopeless because I can't read your mind, or see what you are seeing, and rely entirely on your ability to communicate effectively.
Here is a quick proposal. Since the only reference for employee names I have is from the code in your first post this will be limited in direction but will hopefully demonstrate to you some capability.
Sub Example()
Dim i As Long
Dim str As String
str = ""
For i = 7 To 830 Step 7 'every 7th Column, G to AEX
If Cells(5, i).Value < 12 And Cells(5, i).Value <> "" Then
If str = "" Then
str = Cells(1, i - 2).Value
Else
str = str & ", " & Cells(1, i - 2).Value
End If
End If
Next i
MsgBox ("The following employees have not had 12 hours of rest: " & str)
End Sub
Bookmarks