E
Eric
I’m having an issue with attachment of Normal.dotm in our environment.
Here is the code, which is part of a document creating event procedure in a
template named TheTemplate.dotm:
Private Sub Document_New()
With Application.ActiveDocument
.UpdateStylesOnOpen = False
.AttachedTemplate = Application.NormalTemplate
End With
End Sub
It works if Normal.dotm is located on a local drive: Normal.dotm is actually
attached to each document created from TheTemplate.dotm. But if Normal.dotm
is located on a network drive, the attachment fails (the event procedure
aborts with error number 4198), while the same VBA code works with the
Normal.dot and Word 2000, XP or 2003!
In our environment, each employee has his own %homeshare% location
(represented with H on a network drive where the Normal.dotm is placed.
This H: drive follows the client so she/he can logon to any PC and get
her/his own Normal.dotm. We would like to keep this feature.
Is there a workaround to this issue?
Regards,
Eric
Here is the code, which is part of a document creating event procedure in a
template named TheTemplate.dotm:
Private Sub Document_New()
With Application.ActiveDocument
.UpdateStylesOnOpen = False
.AttachedTemplate = Application.NormalTemplate
End With
End Sub
It works if Normal.dotm is located on a local drive: Normal.dotm is actually
attached to each document created from TheTemplate.dotm. But if Normal.dotm
is located on a network drive, the attachment fails (the event procedure
aborts with error number 4198), while the same VBA code works with the
Normal.dot and Word 2000, XP or 2003!
In our environment, each employee has his own %homeshare% location
(represented with H on a network drive where the Normal.dotm is placed.
This H: drive follows the client so she/he can logon to any PC and get
her/his own Normal.dotm. We would like to keep this feature.
Is there a workaround to this issue?
Regards,
Eric