Nov 19 2023 06:23 PM - edited Nov 19 2023 07:58 PM
Here are my circumstances:
Here is what I am trying to achieve: a quick way to transfer my Word shortcuts to each fresh PC I use. These shortcuts pertain to my own custom styles in a custom Word Template, and shortcuts for more general word functions.
I understand that shortcuts live in documents, and that the default shortcuts live in Normal.dotm.
So my idea was the following:
I've tried this and it hasn't worked. I need someone who knows more about the internal workings of Word to tell me what it is I am likely doing wrong. I have a theory that maybe all the shortcuts are hard linked to the name of my template file, PerfectSetup.dotm, so when I changed the name I essentially deleted all the shortcuts therein. But this is very time consuming to test so if you can suggest your own solution to what I am trying to achieve (a quick way to transfer my Word shortcuts to every fresh local install of Word) I would much appreciate it.
Nov 19 2023 07:40 PM - edited Nov 19 2023 07:43 PM
For keyboard shortcuts, QAT modifications, and building blocks, you do not need a .dotm file. A .dotx will work fine. You need a .dotm if the file is also to contain macros. Any keyboard shortcuts to macros and any QAT buttons for macros should be stored in the same file that contains the macros.
For portability you do not want these stored in your Normal.dotm file but in one or more custom templates. To work for all of your documents, they go in the Word Startup Folder. This makes them "global templates."
Keyboard shortcuts can be copied to a different template using an old utility written by Chris Woodman.
Resources:
Nov 19 2023 07:55 PM
Thankyou for your reply Charles.
Nov 19 2023 09:18 PM - edited Nov 19 2023 09:19 PM
SolutionChris Woodman's utility is not an .exe file. His original is a .dot template and my updated version is a .dotm template.
Styles should be stored in document, not global templates. The Normal template is an exception but should not be a shared template. Look into using a Workgroup Templates folder to hold your document templates. You can copy styles from one template to another using the Organizer. You should also look into storing some style customizations in [Quick] Style Sets. See my article [Quick] Style Sets and Word Themes in Microsoft Word.
Nov 19 2023 09:29 PM - edited Nov 19 2023 09:33 PM
@cedi0003 wrote:
Thank you for your reply Charles.
- Because of my university intranet setup, my Word startup folder (which I think is AppData\Roaming\Microsoft\Templates?) is not shared across the many PCs I use. If I simply store them in a OneDrive folder and double click them to use them, will I be safe from losing my keyboard shortcuts?
The Word Startup Folder which holds global templates, the User Templates folder that holds the Normal.dotm file, and the Workgroup Templates folder should be separate folders. They serve different purposes. There is a fourth templates folder location as well: The default save location for custom templates. I have that designated to be the same folder as my User Templates Folder but it can be separate and is separate by default.
See File New Variations in the Versions of Word for details.
With very, very, few exceptions, templates stored in the Startup Folder are never used as the basis for new documents. Those in the Workgroup Templates folder and the User Templates folder are used for that.
Most of the links about templates are to my chapter on templates.
Nov 19 2023 09:57 PM - edited Nov 19 2023 10:20 PM
Thank you Charles. The "What is the relationship between a Microsoft Word document and its template?" essay was very useful and to-the-point (although the inner-workings of Word are amusingly arcane)
So if I understand correctly:
So, I think some of the strange behaviour I was observing was not that renaming removed shortcuts from my templates, but that it severed the connection between the template and its children.
If I need to move a template, is there a way to explicitly direct a child to where its template now lives?
My main goal is to not sever the connection while using 50 different unsynced versions of Word.
I'd like to follow best practice in regards to where I store things, but also I want to expediate very quickly setting up on new machines. I should note that I don't have admin access on these machine.
So, would you advise that I change the start-up folder to a dedicated startup folder on my OneDrive every time I sit at a new machine (and back up to avoid cloud troubles)?
Edit:
"Styles should be stored in document, not global templates"
Some of the shortcuts I want to always have available are style shortcuts. So they are excluded from global template, is that correct?
Will this be effective?
Nov 20 2023 07:01 AM - edited Nov 20 2023 07:14 AM
@cedi0003 wrote:
Thank you Charles. The "What is the relationship between a Microsoft Word document and its template?" essay was very useful and to-the-point (although the inner-workings of Word are amusingly arcane)
So if I understand correctly:
- Styles/content/page layout are inherited once at conception, then interact no more
- Keyboard shortcuts (and macros and some other things) exist in an ongoing relationship with the template
So, I think some of the strange behaviour I was observing was not that renaming removed shortcuts from my templates, but that it severed the connection between the template and its children.
If I need to move a template, is there a way to explicitly direct a child to where its template now lives?
My main goal is to not sever the connection while using 50 different unsynced versions of Word.
I'd like to follow best practice in regards to where I store things, but also I want to expediate very quickly setting up on new machines. I should note that I don't have admin access on these machine.
So, would you advise that I change the start-up folder to a dedicated startup folder on my OneDrive every time I sit at a new machine (and back up to avoid cloud troubles)?
Edit:
"Styles should be stored in document, not global templates"
Some of the shortcuts I want to always have available are style shortcuts. So they are excluded from global template, is that correct?
Will this be effective?
- Make a OneDrive folder with two subfolders, startup and user templates
- In "startup", make a dotx (dotm?) that has all shortcuts other than style shortcuts
- In "user templates", make a dotx that acts as a style template, including style shortcuts
- At each new machine, open "file locations" dialogue and direct it to these two folders on my OneDrive
Style shortcuts should be in the same file as the styles.
Re-acquainting a document with its attached template or attaching a new template.
I expect that the OneDrive folders will work.
When you have a .dotx (or .dotm) template in your user templates folder the way you use that is to create a new document based on the template. That way, that template's resources are available to it and your styles are already in the document to be activated by any shortcuts. I have a few custom styles that I use, but mostly I use the built-in styles and modify them to suit my needs. For those built-in styles which will be available in every document, keyboard shortcuts in global templates work well. I have a global template that has keyboard shortcuts for headings 4-9 that correspond with the built-in ones for heading 1-3.
50 different computers that you are using? Seriously? If these are not your computers, I would say your cloud solution will work. I prefer to have these folders on my local computer, synced to the cloud folders, rather than referring directly to the cloud folders. But, I use a laptop and want my use of Word to be independent of having an Internet connection.
Note that File > New will not look in your user templates folder for templates unless that folder is also designated as the default save location for new templates. File New Variations in the Versions of Word (Word will look for your normal.dotm template in the user templates, though.) Templates that are stored in the Workgroup templates folder will be available in any version of Word when you use File > New.
Your active Normal.dotm template will always be the one that is in your user templates folder.
Take a look at the free Template Add-Ins on my downloads page and try some of them to get an idea of what you can accomplish with Global templates in the Startup Folder.
Nov 19 2023 09:18 PM - edited Nov 19 2023 09:19 PM
SolutionChris Woodman's utility is not an .exe file. His original is a .dot template and my updated version is a .dotm template.
Styles should be stored in document, not global templates. The Normal template is an exception but should not be a shared template. Look into using a Workgroup Templates folder to hold your document templates. You can copy styles from one template to another using the Organizer. You should also look into storing some style customizations in [Quick] Style Sets. See my article [Quick] Style Sets and Word Themes in Microsoft Word.