View Single Post
 
Old 02-26-2023, 10:43 AM
Ddadoo57 Ddadoo57 is offline Windows 11 Office 2021
Advanced Beginner
 
Join Date: Feb 2023
Posts: 90
Ddadoo57 is on a distinguished road
Default run a dotm template

Good evening,

I have a dotm template and I would like to run it from a custom menu in the word BACKSTAGE.
The idea is to run it as if I had clicked on it with the mouse, so that a docx document is created based on the template in question.

I tried : Documents.Open FileName:=mydotm, format:=wdOpenFormatDocument but it opens the dotm, it doesn't create a docx as desired

I also tried : ActiveDocument.FollowHyperlink mydotm but it does the same thing

Does anyone have a solution to give me?

Sincerely,
David

Translated with www.DeepL.com/Translator (free version)
Reply With Quote