What is the code for making a macro open a template as Document 1 but only when document 1 has not been modified?
Posted on 2006-11-07
Good Day Experts,
I have placed a button/macro in our Normal.dot template that will open another shared template that is for a letterhead. When the letterhead button/macro is clicked, a whole new Word Document is opened(document 2). I'd like that to happen ONLY when Document 1 has already been modified, if document 1 has not been modified then I'd like document 1 to be the letter head template that is opened. this is what is used for the letterhead button/macro:
Application.Documents.Add "s:\word templates\ltrhead.dot"