Get typed string to variable

Sorry, but I don't understand.

Please provide a real-world example of:

  1. File name that you want to rename
  2. File name AFTER the rename
  3. Detailed rules for renaming

And, how are you selecting the file(s) to rename?

It would be best to upload your macro so we can see exactly what you are trying to do.

Please read:
Tip: How Do I Get The Best Answer in the Shortest Time?