vba test optional argument

The solution for “vba test optional argument” can be found here. The following code will assist you in solving the problem.

Sub MySub(Optional pParam As Variant)
If IsMissing(pParam) Then
msgbox “Missing”
End If
End Sub

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts