WD: REM Command Splits Long WordBasic Commands into Two Pieces

ID: Q110396

The information in this article applies to:

SYMPTOMS

If you have a WordBasic command that is longer than 255 characters, and you use the REM/Un-REM feature on this command, when you start the macro, the WordBasic command will be split into two paragraphs.

CAUSE

When you comment out (apply a REM statement before) a long WordBasic command, you will get a paragraph mark and an apostrophe at the location after the 255th character as soon as you click Start to run the macro. If you then remove the comment with the Un-REM feature, the first part of the statement is reactivated, but the second part of the statement remains commented out.

WORKAROUND

Rather then using the REM/Un-REM feature, manually type in (or remove) the REM at the start of the command.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Word 97 for Windows and Word 98 Macintosh Edition.

Additional query words: word6 winword macword

Keywords          : kbinterop kbmacro kbole kbprint wordnt kbmacroexample word8 kbwordvba macword98 winword ntword macword word6 winword2 word7 word95 macword5 
Version           : MACINTOSH:3.0,3.01,3.02,4.0,5.0,5.1,5.1a,6.0,6.0.1,6.0.1a
Platform          : MACINTOSH
Issue type        : kbinfo

Last Reviewed: December 6, 1998