Local variable cannot have the same name as the function containing it

A Dim statement specifies a variable with the same name as the Function procedure containing it.

Error ID: BC30290

To correct this error

  • Remove the variable declaration, or change the name of the variable.

See Also

Concepts

Resolving a Reference When Multiple Variables Have the Same Name

Function Procedures