Thread: [Solved] Quick Access
View Single Post
 
Old 03-15-2016, 06:13 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,138
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

The client should not be accessing a previously saved file for use as the basis of a new document. That's what templates are for.

Clear the variable text from the document and save it as a template, then create a macro similar to the following and call it from a button added to the QAT (Quick Access Toolbar) http://www.gmayor.com/installing_macro.htm
Code:
Option Explicit

Sub MyNewDoc()
    Documents.Add Template:="C:\Path\TemplateName.dotx" 'Change the path and name as appropriate
lbl_Exit:
    Exit Sub
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com

Last edited by gmayor; 03-15-2016 at 10:12 PM.
Reply With Quote