Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2023, 10:43 AM
Ddadoo57 Ddadoo57 is offline run a dotm template Windows 11 run a dotm template Office 2021
Advanced Beginner
run a dotm template
 
Join Date: Feb 2023
Posts: 73
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
  #2  
Old 02-26-2023, 11:08 AM
Ddadoo57 Ddadoo57 is offline run a dotm template Windows 11 run a dotm template Office 2021
Advanced Beginner
run a dotm template
 
Join Date: Feb 2023
Posts: 73
Ddadoo57 is on a distinguished road
Default

it seems to me that I have found a solution with :

Documents.add mydotm,WdNewBlankDocument
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Import setting from .dotm template Bikram Word VBA 2 11-03-2022 12:08 AM
run a dotm template Cannot save some changes to normal.dotm template wiganken Word 2 12-02-2020 03:28 AM
run a dotm template New template/New normal.dotm kenglade Word 3 12-19-2011 04:00 PM
How to use .dotm template extension in MS Word? dude444 Word 0 09-20-2010 09:34 AM
template dotm unable to load in word 2003 dude444 Word 0 09-16-2010 02:13 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:49 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft