WD: REM Command Splits Long WordBasic Commands into Two Pieces

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 : kbinterop kbmacro kbole kbprint wordnt kbmacroexample word8 kbwordvba macword98 winword ntword macword word6 winword2 word7 word95 macword5
Version : MACINTOSH:6.0,6.01; WINDOWS:6.0,6.0a,6.0c,7.0,7.0a; winnt:6.0
Platform : MACINTOSH WINDOWS winnt
Issue type : kbinfo


Last Reviewed: December 30, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.