#1
|
|||
|
|||
View/edit macro in DOTM file.
Is there a way to view/edit a VBA macro code stored in a dotm file in the word startup folder besides opening the dotm file? If I try to view the code with a opened blank document word returns a error message that the project can't be show. Thanks
__________________
Backup your original file before doing any modification. |
#2
|
||||
|
||||
If you double-click on the template, for example, or use any of the other available methods to create a new document from it, you can access the template's code by pressing Alt-F11.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
I was unable to view the vBA project from the doc1.dotm file in a new document created from doc1.dotm.
To open the project I still have to open doc1.dotm itself. I did not understand this restriction, why a user can run a macro from doc1.dotm, but word don't let to view the code. ("blocked project" warning) Thanks!
__________________
Backup your original file before doing any modification. |
#4
|
||||
|
||||
Unless the project is password protected, you can view it from any document attached to the template; if it is password protected, you can't view it at all without supplying the password.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
||||
|
||||
The vba code contained in addins is not available for viewing or editing UNLESS the addin is explicitly opened. If you want to edit the code, open the addin directly - it doesn't matter if it is already loaded.
Note that if the template is VBA password protected this still won't give you access to the code.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#6
|
|||
|
|||
That's what I was thinking. The only way is to open the dotm file itself.
Thanks.
__________________
Backup your original file before doing any modification. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Have to click View > Edit Document every time I open my file? | lolaboona | Word | 1 | 02-12-2015 04:26 PM |
macro not saved in normal.dotm | silveredge8181 | Word | 8 | 06-09-2014 07:58 PM |
Open Quickpart file normalemail.dotm - edit multiple building blocks | rollno | Word | 7 | 02-24-2014 04:29 PM |
Editing .dotm/.dotx/dot file | martinlest | Word | 9 | 10-09-2013 01:57 PM |
Adding macro to normal.dotm programmatically | etippelt | Word VBA | 6 | 04-08-2013 05:55 PM |