J Joakim Norrman May 29, 2009 #1 I have not found a command in VBA to rename a directory in Windows Explorer. Does anyone know the API code for renaming a directory?
I have not found a command in VBA to rename a directory in Windows Explorer. Does anyone know the API code for renaming a directory?
J Jacob Skaria May 29, 2009 #2 Using File System Object... Set objFSO = CreateObject("Scripting.FileSystemObject") objFSO.MoveFolder "C:\temp1" , "C:\temp2" If this post helps click Yes
Using File System Object... Set objFSO = CreateObject("Scripting.FileSystemObject") objFSO.MoveFolder "C:\temp1" , "C:\temp2" If this post helps click Yes
P Peter T May 29, 2009 #3 See the Name function in VBA help Name sOldPath As sNewPath Regards, Peter T