chicosbailbonds
New Member
- Joined
- Dec 18, 2009
- Messages
- 44
As part of my code I define the path and filename of where I want this file to be saved.
Do work to roll the day of the file
This does not seem to work as I am getting a method Saveas of object' _Workbook failed on the last piece of code shown above.
Anyone have any thoughts? Thanks for your time and help in advance.
Jim
Code:
Dim NEWDAYXLS As String
Dim NEWDAYPATH As String
Code:
NEWDAYXLS = Sheets("Dates").Range("M5")
NEWDAYPATH = Sheets("Dates").Range("O5")
Do work to roll the day of the file
Code:
ActiveWorkbook.SaveAs Filename:=NEWDAYPATH & NEWDAYXLS, FileFormat:=52
This does not seem to work as I am getting a method Saveas of object' _Workbook failed on the last piece of code shown above.
Anyone have any thoughts? Thanks for your time and help in advance.
Jim