cindy.gilmore
New Member
- Joined
- Dec 15, 2010
- Messages
- 13
Hi I am having a problem with a line of code and could use some help. Excel gives me the object workbook error at the second line where the path is specified. So its really weird it bugs up at that line but the file does have the correct new name but it is not actually saved. Please help me.
Workbooks("Test.xlsm").Activate
ActiveWorkbook.SaveAs "\\wft\us\HOU28-Groups\GSS\Monthly Reports\Order Stats\" & Format(Now, "yyyy") & "\" & Format(Now, "'MM'-MMMM") & "\Test" & Format(Now, " mm-dd-yyyy") & ".xlsm"
Workbooks("Test" & Format(Now, " mm-dd-yyyy") & ".xlsm").Close
Workbooks("Test.xlsm").Activate
ActiveWorkbook.SaveAs "\\wft\us\HOU28-Groups\GSS\Monthly Reports\Order Stats\" & Format(Now, "yyyy") & "\" & Format(Now, "'MM'-MMMM") & "\Test" & Format(Now, " mm-dd-yyyy") & ".xlsm"
Workbooks("Test" & Format(Now, " mm-dd-yyyy") & ".xlsm").Close