Greetings,
Many thanks in advance for your help.
I have a report template in Excel and I added a button with macro that copies and pastes the desired portion of the template to a new Excel file.
My question is how could I automatically save the file per a value in the template and the file would remain open?
For example, if the company name cell in the template is'John Doe' and the report type cell is 'CTD' the file name would say John Doe CTD CurrentDate.xls.
Here is the code I have so far.
Columns("A:K").Select
Selection.Copy
Workbooks.Add
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
ActiveWindow.Zoom = 75
Thanks for any and all help!
Many thanks in advance for your help.
I have a report template in Excel and I added a button with macro that copies and pastes the desired portion of the template to a new Excel file.
My question is how could I automatically save the file per a value in the template and the file would remain open?
For example, if the company name cell in the template is'John Doe' and the report type cell is 'CTD' the file name would say John Doe CTD CurrentDate.xls.
Here is the code I have so far.
Columns("A:K").Select
Selection.Copy
Workbooks.Add
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
ActiveWindow.Zoom = 75
Thanks for any and all help!