WD97: Error Recording Opening Template with WordBasic MacrosLast reviewed: August 27, 1997Article ID: Q157624 |
The information in this article applies to:
SYMPTOMSWhile recording a Visual Basic macro in Word 97, you will receive the following error attempting to open a template containing a WordBasic macro:
Word cannot open files containing WordBasic macros while macro recording. Stop macro recording and try again. CAUSEWordBasic macros cannot be converted to Visual Basic for Applications while the Visual Basic macro recorder is recording.
WORKAROUNDMethod 1: Stop recording, open the file to automatically convert the WordBasic macros. Save the template in Word 97 format then record the macro using the newly converted template.Method 2: If opening the template using the Open command on the File menu, add the following line to the appropriate place in your macro: Documents.Open FileName:="<path>/<filename>" or, if opening the template using the New command on the File menu: Documents.Add Template:="<path>/<filename>",NewTemplate:=False
where <path>/<filename> is the full path and file name of the file you want to open. |
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |