Hi again (Last question, I promise....maybe)
I am currently have a macro which opens a new workbook and puts in sheets depending on certain conditions, using the code below:
How can this be modified to open a specific template rather than the newbook?
Additionally the template contains some macros. How can i get the above macro to run these once the file has been saved.
The macro to run is just:
Thanks!
I am currently have a macro which opens a new workbook and puts in sheets depending on certain conditions, using the code below:
Code:
Application.SheetsInNewWorkbook = 1
Set Newbook = Workbooks.Add
With Newbook
.SaveAs Filename:=ThisWorkbook.Path & "\" & ActiveWorkbook.Sheets.Item(10).name & "_to_" & ActiveWorkbook.Sheets.Item(1).name & ".xls"
End With
'^line to save book
How can this be modified to open a specific template rather than the newbook?
Additionally the template contains some macros. How can i get the above macro to run these once the file has been saved.
The macro to run is just:
Code:
Sub Compare ()
Call comp1
Call comp2
Call comp3
End Sub
Thanks!