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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.