You are visitor number ????? since 2 October 2004.
Go to Howard Kaikow's home page


Date: 2 October 2004
From: Howard Kaikow <kaikow@standards.com>
Subject: PDFMaker appears to cause problems when using Microsoft Word macros


PDFMaker appears to cause problems when I run certain types of Microsoft Word macros. This example demonstrates how to replicate an instance of a particular problem. The details of the problem are described by comments within the code.

Since posting the example, I have noticed yet another error that occurs when PDFMaker.dot is loaded as a global template.

I have noticed that I can avoid the errors by doing the following:

So the interim solution is to include an AutoExit macro such as the following in my Normal template.

Public Sub AutoExit()
    Dim addinTemp As AddIn
    On Error Resume Next
    Set addinTemp = AddIns("PDFMaker.dot")
    If Err.Number = 0 Then
        addinTemp.Installed = False
    End If
    On Error GoTo 0
    On Error Resume Next
    Set addinTemp = AddIns("PDFMakerA.dot")
    If Err.Number = 0 Then
        addinTemp.Installed = False
    End If
    On Error GoTo 0
    Set addinTemp = Nothing
End Sub