shawnbaker
Programmer
Been trying to rename a file using the shell command in VBA
stAppName = "REN u:\ImportExport\bob fred"
Debug.Print stAppName
Call Shell(stAppName, 1)
However I get a file not found error.
The file exists, the drive is mapped, and I can rename it in the cmd window using the above line.
Any altrernitive methods would be good.
stAppName = "REN u:\ImportExport\bob fred"
Debug.Print stAppName
Call Shell(stAppName, 1)
However I get a file not found error.
The file exists, the drive is mapped, and I can rename it in the cmd window using the above line.
Any altrernitive methods would be good.