M
makkinje.ingrid
Hello all,
I have created a template in MS Word with VBA macros and installed this
on several PCs.
These macros did not cause any problem for three months, but now on one
of the PCs it gives error messages:
for example: nr 5981Could not open macro storage.
The debugger stopped (stops) at several lines in the code, for example
Application.UserAddress = "Company name" & Chr(13) & _
I have changed this to
Application.UserAddress = "Company name" & vbNewLine &_
After changing this, the debugger does not stop at this line anymore
but stops at a next line:
ActiveDocument.Envelope.DefaultSize = "DL"
This code does not cause any problem on the other machines that have
these macros installed and also not when logging on as a different user
on the same PC as where the problem appears.
I have tried the recommendations from KB from Microsoft:
1. Renaming the normal.dot
2. Increasing hard disk space
3. For reinstalling or repairing the VBE6.dll, I have created a new
user profile for that specific user, did not help. I have removed and
reinstalled MS Office, did not help.
Hope someone can help me
Ingrid
I have created a template in MS Word with VBA macros and installed this
on several PCs.
These macros did not cause any problem for three months, but now on one
of the PCs it gives error messages:
for example: nr 5981Could not open macro storage.
The debugger stopped (stops) at several lines in the code, for example
Application.UserAddress = "Company name" & Chr(13) & _
I have changed this to
Application.UserAddress = "Company name" & vbNewLine &_
After changing this, the debugger does not stop at this line anymore
but stops at a next line:
ActiveDocument.Envelope.DefaultSize = "DL"
This code does not cause any problem on the other machines that have
these macros installed and also not when logging on as a different user
on the same PC as where the problem appears.
I have tried the recommendations from KB from Microsoft:
1. Renaming the normal.dot
2. Increasing hard disk space
3. For reinstalling or repairing the VBE6.dll, I have created a new
user profile for that specific user, did not help. I have removed and
reinstalled MS Office, did not help.
Hope someone can help me
Ingrid