Optional parameters are easy:
Sub XXX(V As Long, _
Optional Q As Long = 99, _
Optional R As String = "Hello")
and you can even use named arguments if you like
XXX V:=123, R:="Goodbye"
See Help for the Sub and Function statements and IsMissing() function
for more.
>I have some custom vba module procedures and I wanted to make some of the
>parameters optional (by setting a default value) so that I could use
[quoted text clipped - 4 lines]
>
>Thanks
--
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.