Edit

Share via


Parameter '<parametername>' already has a matching omitted argument

A procedure call supplies an argument by name after omitting the same argument by position. The following is an example:

Public Sub ABC(ByVal X As Byte, Optional ByVal Y As Byte = 0, _  
                                Optional ByVal Z As Byte = 0)  
' ...  
' Argument Y is omitted by position, but supplied by name.  
Call ABC(6, , Y:=3)

Error ID: BC36566

To correct this error

  • Supply the argument by position, or remove the comma that omits it.

See also