How to open xl and create a new document based on a template

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

does anyone know if there is an xl equiv to the word macro "Documents.Add
Template etc, to open a new xls from an xlt - I want to be able to open and
save new xls's without changing the template..
 
Take a look at "Add Method (Workbooks Collection)" in the helpfile. You'll
see that you can specify the template name to be used to create new workbooks
i.e.

Workbooks.Add(Template:= "C:\template.xlt")
 
Do you mean like

Sub openfromXLT()
Workbooks.Add Template:="my_xltpath"
End Sub

Have you tried to record this action?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top