All -
I'm using the built in "Name" function for VBA to rename some files and directories but running into issues. The directories and files that I'm editing are on my local network, and I'm having some success but I'm not where I want to be yet.
When I rename the file:
Name "\\DavesComputer\Subdirectory1\Subdirectory2\Word.doc" As "\\DavesComputer\Subdirectory1\Subdirectory2\Word1.doc"
I get no problems. The files are renamed correctly and I have no errors.
When I try to rename the subdirectory:
Name "\\DavesComputer\Subdirectory1\Subdirectory2" As "\\DavesComputer\Subdirectory1\Subdirectory3" I get a path/file error.
Anyone have pearls of wisdom? By the way I am running a routine to test if there are open files in the directory before I rename it, and that's not the issue here (I believe that would throw a different error anyway).
Thanks.
I'm using the built in "Name" function for VBA to rename some files and directories but running into issues. The directories and files that I'm editing are on my local network, and I'm having some success but I'm not where I want to be yet.
When I rename the file:
Name "\\DavesComputer\Subdirectory1\Subdirectory2\Word.doc" As "\\DavesComputer\Subdirectory1\Subdirectory2\Word1.doc"
I get no problems. The files are renamed correctly and I have no errors.
When I try to rename the subdirectory:
Name "\\DavesComputer\Subdirectory1\Subdirectory2" As "\\DavesComputer\Subdirectory1\Subdirectory3" I get a path/file error.
Anyone have pearls of wisdom? By the way I am running a routine to test if there are open files in the directory before I rename it, and that's not the issue here (I believe that would throw a different error anyway).
Thanks.