Hey everybody,
I am hoping that someone can help me out here. I have the basic concept down, I think this just needs some tweaking, in order to work. What I am trying to do is have a file save to two different folders, essentially creating a continual and self-sustaining backup folder, in the event that files are deleted off of one folder. Anyway, here is the code that I am using, which is in a module:
The problem I am having is that it will save in the first folder, but not the second (although it does prompt with the file already exists message, it is not seen in the folder). However, I also keep getting the debugger message, which highlights the "ActiveWorkbook.SaveAs Filename:=chDir2 + Filename" line. Any help is greatly appreciated.
Thanks in advance,
Nuge
I am hoping that someone can help me out here. I have the basic concept down, I think this just needs some tweaking, in order to work. What I am trying to do is have a file save to two different folders, essentially creating a continual and self-sustaining backup folder, in the event that files are deleted off of one folder. Anyway, here is the code that I am using, which is in a module:
Code:
Sub Savingtwofolders()
chDir1 = "O:\Test Folder A"
chDir2 = "O:\Test Folder B"
Filename = "file1.xls"
ActiveWorkbook.SaveAs Filename:=chDir1 + Filename
ActiveWorkbook.SaveAs Filename:=chDir2 + Filename
End Sub
The problem I am having is that it will save in the first folder, but not the second (although it does prompt with the file already exists message, it is not seen in the folder). However, I also keep getting the debugger message, which highlights the "ActiveWorkbook.SaveAs Filename:=chDir2 + Filename" line. Any help is greatly appreciated.
Thanks in advance,
Nuge