This Local Variable or Parameter has the Same Name as a Constant Error

You declared a local variable in a method or a parameter in a Sub or Function that has the same name as a constant.


Example

You cannot use the same name for a constant and a local variable

Const Version="10B"
Dim Version as String

:


See Also

Const, Dim statements.