View Single Post
 
Old 04-19-2022, 10:47 AM
Charles Kenyon Charles Kenyon is offline Windows 10 Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,536
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by Guessed View Post
Charles
That seems to be a lot of effort when the NormalTemplate is already open. Wouldn't a macro only need one line?
Code:
Application.NormalTemplate.Save
PS. On my machine the default for saving new Autotext entries is Building Blocks.dotx, not Normal.dotm
Your code works if the Normal template thinks there has been some change. This is some times fiddled with by Add-Ins. My code makes sure that it knows it has not been saved. I am sure it can be improved upon, though.

The default save location for AutoText remains the Normal template.
00 deleteme 1.png

I tested this today in Word 2010, 2021, and 365. This was from Insert > Quick Parts > AutoText > Add Selection to AutoText Gallery and from Alt+F3. If you use Insert > Quick Parts > Add Selection to Quick Parts Gallery and then change the gallery in the dialog box, it also switches the template to the Normal template.

The default save location for other kinds of Building Blocks is Building Blocks.dotx.

I have been looking at this for more than ten years and saw the same thing in 2013, 2016 and 2019 which I no longer have installed.
Reply With Quote