WD: REM Command Splits Long WordBasic Commands into Two Pieces

Last reviewed: February 11, 1998
Article ID: Q110396
The information in this article applies to:
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Word for the Macintosh, versions 6.0, 6.01
  • Microsoft Word for Windows NT, version 6.0
  • Microsoft Word for Windows 95, versions 7.0, 7.0a

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 : kbmacroexample kbwordvba macword macword5 ntword winword winword2 word6 word7 word8 word95 word97 wordnt macword98 kbinterop kbmacro kbole kbprint
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
Solution Type : kbworkaround


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: February 11, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.