I'm not sure I understand. I'm not trying to change the variables to match the module names, I'm trying to rename an incorrect module name reference
I have a public variable called "var" in a code module called Startup & another public variable called "var" in a code module called TestModule.
If I want to reference the variables from my Main code module I can use:
Startup.var
TeatModule.var
There is no problem doing this. However if I mis-type my references & make them:
then try to change them to the correct module name references with the Rename To function, I get the "Name already exists" error. I can change them manually & they work fine.
It's not a big deal, but it seems like a bug in the IDE to me & it's inconvenient because in a case where I have multiple references to variables in a code module that I have since renamed, I have to go through the code & change each one manually.
- Colin.