Named argument already specified
You can use a named argument only once in the argument list of each procedure invocation. This error has the following causes and solutions:
- You specified the same named argument more than once in a single call. For example, if the procedure
expects the named argumentsMySub
andArg1
, the following call would generate this error:Arg2Call MySub(Arg1 := 3, Arg1 := 5)Remove one of the duplicate specifications.
- You specified the same argument both by position and with a named argument, for example:
Call MySub(1, Arg1 := 3)Remove one of the duplicate specifications.
For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).