View Single Post
 
Old 03-25-2014, 03:25 AM
Cristin7 Cristin7 is offline Windows 7 32bit Office 2010 32bit
Novice
 
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