title | keywords | f1_keywords | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|
Named argument already specified |
vblr6.chm1011224 |
|
8fa1e0f1-2484-8344-038c-438ab21d2b71 |
06/08/2017 |
medium |
Use a named argument only once in the argument list of eachprocedure 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
MySub
expects the named argumentsArg1
andArg2
, the following call would generate this error:Call 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).
[!includeSupport and feedback]