Microsoft KB Archive/79189

{|
 * width="100%"|

ANSI Carriage Return Doesn't Work in Macro Editing Window

 * }

Q79189

-

The information in this article applies to:


 * Microsoft Word for Windows, versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c

-

SYMPTOMS
In Microsoft Word for Windows, using the ANSI character set and selecting the carriage return character (Chr$(13)) does not produce a carriage return in the macro editing window. Instead, it produces a period.

STATUS
Microsoft has confirmed this to be a problem in the versions of Microsoft Word for Windows listed above. We are researching this problem, and will post more information here in the Microsoft Knowledge Base as it becomes available.

Steps to Reproduce Problem in Version 2.0
 From the Tools menu, choose Macro, type in a macro name, and choose the Edit button.  Type the following macro:      Sub MAIN A$=InputBox$(&quot;Line 1&quot;+Chr$(13)+&quot;Line 2&quot;) End Sub   Choose the Start button, or press ALT+S. The macro editing window displays the following:      Line1.Line2. 

Steps to Reproduce Problem in Version 1.x
 From the Macro menu, choose Edit, and type in a macro name. Choose the OK button.  Type the following macro:      Sub MAIN A$=InputBox$(&quot;Line 1&quot;+Chr$(13)+&quot;Line 2&quot;) End Sub   Choose the Start button, or press ALT+S. The macro editing window displays the following: <pre class="FIXEDTEXT">     Line1.Line2. </li></ol>

Additional query words: 1.x 2.0 winword2 6.0 word6 winword

Keywords :

Issue type :

Technology :