Thanks it worked I now have the following structure. I also hope I did not forget the code tags this time because I don't know what these are yet
the next thing that needs to be done is loop everything so they can't save the workbook until everything is entered. Meanwhile I'll search the forum for answers.
Sub Knop6_Klikken()
If Range("c5").Value = "" Then
MsgBox "Vul naam in!!!!"
Else:
End If
If Range("f5").Value = "" Then
MsgBox "Vul begin dienst in!!!!"
Else:
End If
If Range("f6").Value = "" Then
MsgBox "Vul einde dienst in!!!!"
Else:
End If
If Range("c3").Value = "" Then
MsgBox "Vul datum in!!!!"
Else:
End If
If Range("f3").Value = "" Then
MsgBox "Vul shift in!!!!"
Else:
End If
Dim rng As Range
Set rng = Range("G12,G13,G14,J12,J13,J14,M12,M13,M14")
If Application.WorksheetFunction.CountA(rng) > 0 Then
MsgBox "Alles ok"
Else
MsgBox "Gelieve het aantal uren bij de IpCode in te vullen"
End If
End Sub
Bookmarks