I have a file that uses an active x control box to save the file into two locations. The code is as follows:
Code<<Sub SaveToLocations()'UpdateByExtendoffice20160623
ActiveWorkbook.SaveCopyAs "A:\PAULA & RUTH\CAPITAL ASSETS" + ActiveWorkbook.Name
ActiveWorkbook.SaveCopyAs "P:\Rail Car Inventory\Capital Project" + ActiveWorkbook.Name
ActiveWorkbook.Save
End Sub>>
The error occurs when I try to save the file when it was opened from the second location.
Any suggestion on how to allow saving to occur from either location and update the other?
Code<<Sub SaveToLocations()'UpdateByExtendoffice20160623
ActiveWorkbook.SaveCopyAs "A:\PAULA & RUTH\CAPITAL ASSETS" + ActiveWorkbook.Name
ActiveWorkbook.SaveCopyAs "P:\Rail Car Inventory\Capital Project" + ActiveWorkbook.Name
ActiveWorkbook.Save
End Sub>>
The error occurs when I try to save the file when it was opened from the second location.
Any suggestion on how to allow saving to occur from either location and update the other?