Syntax Error Using the FormatFoldOverBooklet Macro

ID: Q128956


The information in this article applies to:
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c


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.



MORE INFORMATION

For additional information, please see the following article in the Microsoft Knowledge Base:

Q123606 WD6X: Supplemental Macros for Word 6.0 for Windows Available

Additional query words: winword err on error wordbasic 100 WD1025 margins booklet

Keywords : kbmacro kbformat
Version : WINDOWS:6.0,6.0a,6.0c
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: January 3, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.