Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 03-25-2014, 03:25 AM
Cristin7 Cristin7 is offline How to save a macro in a document generated with a word model? Windows 7 32bit How to save a macro in a document generated with a word model? Office 2010 32bit
Novice
How to save a macro in a document generated with a word model?
 
Join Date: Mar 2014
Posts: 5
Cristin7 is on a distinguished road
Default

Thank you very much it workes correctly.
I changed only:
Application.VBE.ActiveVBProject.VBComponents.Impor t (StrModule & ".bas")

with the following:
ActiveDocument.VBProject.VBComponents.Import (StrModule & ".bas")

and I changed :
ActiveDocument.AttachedTemplate.Name = ""

with the following:
ActiveDocument.AttachedTemplate = ""


Thank you

Chiara
Reply With Quote
 

Tags
macro problem

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I save a Word file with a macro for distribution? leemoreau Word VBA 3 10-04-2013 08:06 AM
How to save a macro in a document generated with a word model? Comparing with a model format qetuo Word 2 05-01-2013 11:23 PM
How to save a macro in a document generated with a word model? Macro to create new word doc and save the file using String found in the document VBNation Word VBA 2 02-08-2013 07:14 AM
Word ask to save template whenever i save a derived document jorbjo Word 3 10-04-2012 10:52 AM
How to save a macro in a document generated with a word model? NEED macro to save word doc as pdf socrates01 Word 3 07-11-2011 05:12 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:33 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft