ID: Q79189
The information in this article applies to:
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.
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.
1. From the Tools menu, choose Macro, type in a macro name, and choose
the Edit button.
2. Type the following macro:
Sub MAIN
A$=InputBox$("Line 1"+Chr$(13)+"Line 2")
End Sub
3. Choose the Start button, or press ALT+S. The macro editing window
displays the following:
Line1.Line2.
1. From the Macro menu, choose Edit, and type in a macro name. Choose
the OK button.
2. Type the following macro:
Sub MAIN
A$=InputBox$("Line 1"+Chr$(13)+"Line 2")
End Sub
3. Choose the Start button, or press ALT+S. The macro editing window
displays the following:
Line1.Line2.
Kbcategory: kbusage kbmacro
KBSubcategory:
Additional query words: 1.x 2.0 winword2 6.0 6.0a 6.0c word6
winword
Version : 1.x 2.x 6.0 6.0a 6.0c
Platform : WINDOWS
Last Reviewed: July 30, 1997