Ah, but Tom suggested that you put the code into the Workbook_open
procedure--not just in the ThisWorkbook module.
But since it's a template, you could use another argument in the workbooks.open
statement:
Workbooks.Open Filename:=ThisWorkbook.Path & "\book1.xlt", UpdateLinks:=3, _
editable:=False
The editable:=false works nicely with the template.
And this worked in the Auto_open procedure for me, too.
====
and just for no good reason at all...
since you're in another macro, you can change the setting, open the workbook,
and change it back. (I wouldn't use this!):
Dim ExistingAskToUpdateLinks As Boolean
With Application
ExistingAskToUpdateLinks = .AskToUpdateLinks
.AskToUpdateLinks = False
Workbooks.Add template:=ThisWorkbook.Path & "\book1.xlt"
.AskToUpdateLinks = ExistingAskToUpdateLinks
End With
'ThisWorkbook.Close savechanges:=false
But something like this could come in handy(???) later on (probably not,
though!).