In this called function, no argument is defined with the “Optional” keyword, so when an argument is not passed in the calling function, we see the error message “Argument not Optional.” In order to resolve this, we need to either pass the parameter in the calling function or mark the rollno argument as optional .
How do you fix an argument not optional in VBA?
In this called function, no argument is defined with the “Optional” keyword, so when an argument is not passed in the calling function, we see the error message “Argument not Optional.” In order to resolve this, we need to either pass the parameter in the calling function or mark the rollno argument as optional .