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
|