I have a line of code to copy a folder and contents using FileSystemObject (FSO). It works great - until I get a space in the folder name. I'm not sure how to handle this. Any help is appreciated.
In this line, if FldName contains a space, the code errors.
Ed
In this line, if FldName contains a space, the code errors.
Code:
FSO.CopyFolder FromPath, ToPath2 & "\" & FldName, True\
Ed