![]() |
#1
|
|||
|
|||
![]()
I have done certain ribbon customizations using XML and VBE. However, the customizations created by me are available in all the word documents that I open.
I want to create a template file of my customizations. However, my vbe code and all macros have been saved in the normal.dotm file. I don't want them to be saved in the normal.dotm file. What should I do about this? |
#2
|
||||
|
||||
![]()
You could open the relevant template & cut & paste the macros from normal.dotm to the template file. Do note that this will require your template to be re-saved in the dotm format, not dotx.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
okay.. and i will still create new customisations. How should i ensure that it is saved in a separate template file. will word give me such option while saving..?
|
#4
|
||||
|
||||
![]()
All you need do is have a document based on the template open, so that any new customizations can be added to that document's template. You get this option when you're creating the customizations, not when saving the file.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
![]()
The case is.. I deleted the normal.dotm file. Then I opened a new word document and saved it as a .dotm file with a new name. This file did not have the old customizations that I had done previously. The problem is when I again create a new macro, it is once again stored in the normal.dotm file. In VBE it shows the normal template as well as the template which I created. I can copy the macros in my new template. But, isn't there a way to directly make the macros be stored in my new template.
If there is no way for this, and copying is the only alternative should I insert a new module to copy the macros...? |
#6
|
||||
|
||||
![]() Quote:
Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
|||
|
|||
![]()
Okay, I understand.
Please tell how should I create a new document using a new template. This is what I have currently-- The original normal.dotm i.e. with no customizations or modifications. Now further whatever macros I create, i want them to be in a different template. So what should be my first step? If i open a new file and save it as some .dotm file with new name, it will have the normal.dotm associated with it.. I don't get the exact procedure.. Please, Kindly help.. |
#8
|
||||
|
||||
![]()
To create a new template, fist create a new document, adjust whatever Styles, etc. you need, add any customizations to the document, then save it as a template, via File|Save As, making sure to choose the macro-enabled template format (i.e. dotm). Form now on, any documents you create using that template will inherit all its customizations (except for the actual macros, which will remain in the template but be accessible to the document) and, if you choose to make further customizations, you'll be able to save them to either the new document or your new template.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#9
|
|||
|
|||
![]()
Well thanks for your patient replies..But I am still not through with my problem..
![]() ![]() I followed the procedure, I created new template. then opened a new file using that new template, and then created macros. In the VBE it shows first normal template, below it the template i created and then the current file. the macro was still created in the module under the normal template. Finally i copied the macro in a new module created in my file. Its fine for the time being, proceeding with this.... ![]() ![]() ![]() |
#10
|
||||
|
||||
![]() Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#11
|
|||
|
|||
![]()
I got the solution.
The mistake that i was doing was- While creating macros it gave option of saving. There i should have selected the proper template. Quite silly of me.. ![]() Thanks a lot for your patience and help. |
![]() |
Tags |
customization, normal.dotm, template |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
ketanco | Project | 1 | 06-21-2014 06:12 AM |
Word does not ask do i want to overwrite a file on saving a file | sam2149 | Word | 2 | 03-24-2014 04:18 AM |
![]() |
stefaan | Word | 2 | 11-02-2013 07:46 AM |
Message from template not saving | nigh | Outlook | 0 | 01-11-2012 03:11 AM |
Update Document Template when Saving the Document File | bjbercaw | Word | 3 | 11-16-2010 02:03 PM |