Rather than passing fake values, just specify that they should be optional:
If you want to, you can even set a value that will be used if nothing is passed:Code:Public Sub MySubroutine(Optional ByRef arrMyArray() As Integer, Optional ByRef lngMyLong As Long)
Code:Public Sub MySubroutine(Optional ByRef arrMyArray() As Integer, Optional ByRef lngMyLong As Long = -1)




Reply With Quote
