WD97: InsertBreak Statement Inserts a Carriage ReturnLast reviewed: July 31, 1997Article ID: Q155983 |
The information in this article applies to:
SYMPTOMSWhen you run a macro that uses the InsertBreak statement, Word 97 inserts a carriage return. This behavior is different from previous versions of Word.
WORKAROUNDWARNING: ANY USE BY YOU OF THE OR MACRO 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. To work around this problem, add the Type:=0 parameter as in the following example:
Sub Test() WordBasic.FileNewDefault WordBasic.Insert "This is some text" WordBasic.InsertBreak Type:=0 End Sub STATUSMicrosoft has confirmed this to be a problem in Microsoft Word 97 for Windows. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
KBCategory: kbprg kbcode
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |