Save As function
Hello,
I want to save a file with path and file name contained in cell C2, and current date saved in C1.
For example, I have in cell C2 ="C:\RL\RL REVAMPED 2012-1 TB as of "&TEXT(C1,"YYYYMMDD")&".xlsm" and in cell C1 I have today's date.
I tried typing the following code below but I get an error message that there is a break in code.
ThisWorkbook.SaveAs Filename:=range("C2")
Thanks in advance for your help,
GNY
Try this
ThisWorkbook.SaveAs Filename:=range("C2")& "\" & Format(C1,"YYYYMMDD")&".xlsm"
Hope it will help you