Answers for "vba default parameter"

VBA
0

vba default value

Sub nameMe(ByVal p1 As datatype1, Optional ByVal p2 As datatype2 = defaultvalue)
	Debug.Print p1 & ", " & p2
End sub

Sub testMe ()
	nameMe "John"			' John
	nameMe "John", "Doe"	' John, Doe
End Sub
Posted by: Guest on May-07-2021

Code answers related to "vba default parameter"

Code answers related to "VBA"

Browse Popular Code Answers by Language