How do I rename a folder? (not a file)

  • Thread starter Thread starter Guest
  • Start date Start date
For further information, look up "Name Statement" in the VBA help.

For instance the help remark says:

The Name statement renames a file and moves it to a different directory or
folder, if necessary. Name can move a file across drives, but it can only
rename an existing directory or folder when both newpathname and oldpathname
are located on the same drive. Name cannot create a new file, directory, or
folder.
 
Back
Top