Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-16-2015, 11:24 AM
mrlemmer11 mrlemmer11 is offline Using templates on start of Word Application Windows 7 32bit Using templates on start of Word Application Office 2010 32bit
Novice
Using templates on start of Word Application
 
Join Date: Jun 2015
Posts: 13
mrlemmer11 is on a distinguished road
Default Using templates on start of Word Application

Hello,



So.... I've been working on this project where I have 2 userForms and 1 module... all of which contain macros/subs/functions inside of them. I have been doing this all under the Normal.dotm file.

At this point, I have gotten everything functional and happy with the results. However, from my readings online I have found that it is definitely not a good idea to have all of these items tied to the Normal.dotm file since other people in my group need access to these and I don't want to mistakenly erase unrelated things they may have in their own normal.dotm file.

With that being said, I did some reading and decided to create my own dotm file and have it reside on the startup folder for word. so myTest.dotm has the modules and userforms I exported from my normal.dotm file attached to it. It is saved in the startup folder. I have verified that this part is correct because if i launch a new word instance I can see that it recognizes these macros under the myTest.dotm file in run macros tool.

The problem comes when I try to run any of these macros though. I get:

Compile error in hidden module: protectMacros.
This eeor commonly occurs when code is incompatible with the version, platform, or architecture of this application. Click 'Help' for information on how to correct this error.

So what am I doing wrong? All of these items worked perfectly when in the normal.dotm file. All i did was export them from normal.dotm and imported them into myTest.dotm. I deleted them from normal.dotm. I added myTest.dotm to my startup
folder for word.

edit: I ensured that none of my code made reference to things like call normal.protectMacros.verify to which I changed it to call myTest.protectMacros.verify

Please help. Thanks.
Reply With Quote
  #2  
Old 07-16-2015, 11:53 AM
mrlemmer11 mrlemmer11 is offline Using templates on start of Word Application Windows 7 32bit Using templates on start of Word Application Office 2010 32bit
Novice
Using templates on start of Word Application
 
Join Date: Jun 2015
Posts: 13
mrlemmer11 is on a distinguished road
Default

Well... some of it maybe solved.... when I created the new global template, I didn't include the same references that my normal.dotm had on it. I have added those, and I have now been able to get farther into the application before. I did receive the same error message pertaining to a different module than before though. This leads me to believe that I may have an issue with normal.yadada still residing somewhere inside that module, which I will look into.....
Reply With Quote
  #3  
Old 07-16-2015, 12:59 PM
mrlemmer11 mrlemmer11 is offline Using templates on start of Word Application Windows 7 32bit Using templates on start of Word Application Office 2010 32bit
Novice
Using templates on start of Word Application
 
Join Date: Jun 2015
Posts: 13
mrlemmer11 is on a distinguished road
Default

yup, including references on my global template was the issue. problem solved. thanks for viewing!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
how NOT to start word 2013 with 'choosing templates'? dylansmith Word 4 12-08-2012 12:59 PM
Using templates on start of Word Application cannot start the source application for this object - Excel charlesmac Excel 3 08-15-2012 05:22 AM
Trusted Locations in Word 2010 - inconsistent application - add-ins - templates Charles Kenyon Word 1 04-17-2012 03:26 AM
Using templates on start of Word Application A word macro application Hikmetotheron Word 3 04-26-2011 02:01 PM
Microsoft Office 2010 programs display error message "Application has failed to start SamSR Office 1 02-15-2011 07:15 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:25 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