NessPJ
Active Member
- Joined
- May 10, 2011
- Messages
- 431
- Office Version
- 365
Hi,
Right now i have a code preventing my Macro to run, if one of the used (required) cells are still empty.
Here is the code:
I would want to change thise code to check if multiple cells are Empty.
(This would go for : C6 and G6...some of the cells in between will always be empty due to the layout so i would only need the code to look for those cells).
Any clues?
I tried using "IF AND(RANGE..." or "IF Array(..." but those kept giving me error messages.
Right now i have a code preventing my Macro to run, if one of the used (required) cells are still empty.
Here is the code:
Code:
Sub Gegevens_Verwerken()
If Range("C6") = Empty Then
MsgBox "De Invoersheet is nog leeg of niet correct gevuld!", 64, "Gegevens niet verwerkt"
Else
Call Gegevens_Verwerken2
End If
End Sub
I would want to change thise code to check if multiple cells are Empty.
(This would go for : C6 and G6...some of the cells in between will always be empty due to the layout so i would only need the code to look for those cells).
Any clues?
I tried using "IF AND(RANGE..." or "IF Array(..." but those kept giving me error messages.