![]() Selection.InsertBefore ("Documentation for Microsoft Word template: " & docTemplate.Name & vbCrLf & vbCrLf) Set docReport = ("Normal.dotm", vbFalse, wdNewBlankDocument) ' refers to the startup document, the template, or the generated report ' We could just use ThisDocument, but it could get confusing whether ThisDocument 'Save a reference to the Analysis document, where options were selected So this is what the updated DocumentWordTemplate procedure looks like now:ĭocumentWordTemplate Procedure Public Sub DocumentWordTemplate() If the user decides to cancel out of the Open File dialog without selecting a template, then we haven’t created the report document yet, and we don’t have to close the document to clean up after ourselves. On further reflection, I decided it best to reverse the order of the first two steps.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |