Beatrice
Board Regular
- Joined
- Sep 17, 2019
- Messages
- 85
- Office Version
- 2019
- Platform
- Windows
Hi everyone, I am very new to Marco, it would be glad to get some help here
Here is my trial:
DD = Day(Date)
MMM = Month(Date)
YY = Year(Date)
WBK = "S:\Project" & Format(Now, "DD MMM YY") & ".xlsx"
Windows("Destination File.xlsx").Activate
ActiveWorkbook.SaveAs Filename:=WBK, FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False
ActiveWindow.Close
So far, it is working. But I would like to add a cell value into the file name.
Example: Cell A2 = "Item Code"
I am expecting the file to be save as " S:\Project\Item Code - 28 Oct 19.xlsx"
Can anybody give me a hand?
Thank you.
Here is my trial:
DD = Day(Date)
MMM = Month(Date)
YY = Year(Date)
WBK = "S:\Project" & Format(Now, "DD MMM YY") & ".xlsx"
Windows("Destination File.xlsx").Activate
ActiveWorkbook.SaveAs Filename:=WBK, FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False
ActiveWindow.Close
So far, it is working. But I would like to add a cell value into the file name.
Example: Cell A2 = "Item Code"
I am expecting the file to be save as " S:\Project\Item Code - 28 Oct 19.xlsx"
Can anybody give me a hand?
Thank you.