The information in this article applies to:
SUMMARY
If the ENTER key is pressed in an edit box created by the WordBasic
InputBox$ function, an erroneous soft return (newline character) will be
inserted into the document in addition to a hard return (paragraph mark).
MORE INFORMATIONTo remove the soft return characters, use the CleanString$() function, as in the following macro example:
The above macro inserts a hard return after each new line entered into the
InputBox$() edit control.
For example:
To insert a soft return after each new line entered into an InputBox, use
the following macro example:
WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN
RISK. Microsoft provides this macro code "as is" without warranty of any
kind, either express or implied, including but not limited to the implied
warranties of merchantability and/or fitness for a particular purpose.
Kbcategory: kbusage kbmacro Additional query words: 6.0 InputBox$() input box paragraph word6 7.0 word95 word7 winword cleanstring hard carriage newline inputbox duplicate
Keywords : |
Last Reviewed: December 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |