excelbytes
Active Member
- Joined
- Dec 11, 2014
- Messages
- 291
- Office Version
- 365
- Platform
- Windows
I have a file template that I use to enter data into. Afterwards I need to save it with a new name based on the text in a specific cell and to another file location. I have two pieces of code:
I need to combine these two so that the file is saved to the "N" location based on the name in cell I2 of the OFFICIAL DRAFT worksheet.
Thanks in advance for your help!
VBA Code:
Dim name As String
name = Worksheets("OFFICIAL DRAFT").Range("I2").value
ActiveWorkbook.SaveAs Filename:=name
ActiveWorkbook.SaveAs Filename:= "N:\Parts Technical\Mark\MPA New Part Adds\......"
I need to combine these two so that the file is saved to the "N" location based on the name in cell I2 of the OFFICIAL DRAFT worksheet.
Thanks in advance for your help!