Thanks Palmetto davesexcel code worked. but one other problem i am having with this is the range actually isn't c7:g13 its actual c7:g13 and then again from k7:o13 and then again from y7:ac13.
I've tried to insert the code as this
Sub Calculate_Worksheet()
Dim rng As Range, c As Range
Set rng = Range("c7:g13, k7:o13, y7:ac13")
For Each c In rng.Cells
If c.Value > 16 Then MsgBox " Too many students have been booked in please check the following Cell " & c.Address
Next c
End sub
but this gives me a global error. can you help? I've added an attachment should you need to have a look at a sample.
Bookmarks