Syntax Error Using the FormatFoldOverBooklet Macro

Last reviewed: August 5, 1997
Article ID: Q128956
The information in this article applies to:
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, version 7.0

SUMMARY

If you run the FormatFoldOverBooklet macro from the Supplemental Macros for Word Application Note (WD1025), Word may post a WordBasic syntax error when you click the Set Document Margins button.

This is a known problem with the FormatFoldOverBooklet macro. To correct the syntax error, edit the FormatFoldOverBooklet macro as follows:

  1. Open the APPNOTE1.DOT from your <WinWord>\MACROS subdirectory.

  2. From the Tools menu, choose Macro. Select the FormatFoldOverBooklet and choose the Edit button.

  3. From the Edit menu, choose Find. Type "If File" (without the quotation marks) in the Find What edit box. Choose the Find Next button.

    The following instruction should be found:

          If FilePageSetup .LeftMargin = dlg3.LeftMargin, .RightMargin
    

  4. Delete "If" from the beginning of the FilePageSetup statement.

  5. From the File menu, choose Close. Choose to save changes to the FormatFoldOverBooklet macro.

  6. From the File menu, choose Close and save changes to the APPNOTE1.DOT file.

Kbcategory: kbusage kbmacro kbappnote KBSubcategory:


Additional reference words: 6.0 6.0a 6.0c winword err on error
7.0 word95 word7 word6 error wordbasic 100 WD1025 margins booklet
Version : 6.0 6.0a 6.0c 7.0
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: August 5, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.