View Single Post
 
Old 08-28-2024, 03:19 PM
lhn lhn is offline Windows 11 Office 2021
Novice
 
Join Date: Aug 2024
Posts: 2
lhn is on a distinguished road
Default

Hello,

I'm trying to use Document_New() at the time of creating a new document based on a template, to determine the template's path and use a portion of that path to automatically save the new document.

For example, using the path from the original question (C:\some\arbitrary\path\mytemplate.dotm) I would save the new document to C:\some\arbitrary\path\another\newdocument.docx

When I query ActiveDocument.AttachedTemplate.Path it gives me "C:\Users\Lizzie\AppData\Roaming\Microsoft\Templat es" however, this is not where my template is saved.

In Word I have changed the "Default personal templates location" in File/Options/Save to the new path.
Reply With Quote