I have a subroutine that looks like this. It has two parameters.
Sub Advance(ByRef listR() As String, rCount)
...code
End Sub
When I try to call this:
Advance listR:=theList, theCount
It gives me a compile error:
Expected: named parameter
Why is this? It works fine like…
Sub Advance(rCount)
...code
End Sub
And called via:
Advance theCount
Or also works with just the array parameter.
I believe that you can call your sub any of the following ways, but you can’t name the first parameter and not name the second one: