Greetings,
I have the following field-validating VBscript in an Excel spreadsheet:
When cell K3 = 1, the script checks other cells in the inner IF statement, and puts up MsgBoxes if certain conditions are true. This much works fine.
The problem is: if all of the conditions in the inner IF statement are false (i.e. all the cells have what they're supposed to have in them, and no MsgBoxes have to be put up) the outer IF statement just STOPS. The next part of it:
is not executed. It's as though VBscript thinks the "End If" in the inner IF statment is part of the outer If statement (??).
Now, when cell K3 is not equal to 1, the entire outer IF statement is executed. So the problem is with the inner IF statment.
Any idea what the problem is?
Thanks!
DM
Bookmarks