Microsoft KB Archive/88593

{|
 * width="100%"|

Description of Auto Quote Option in WinWord Macro Dialog Box

 * }

Q88593

-

The information in this article applies to:


 * Microsoft Word for Windows, versions 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c
 * Microsoft Word for Windows 95, version 7.0
 * Microsoft Word for Windows Dialog Editor, version 2.4

-

SUMMARY
In the Microsoft Word for Windows Macro Dialog Editor, the Auto Quote feature encloses button label text, which you type in the Text$ box of the Option Button Information dialog box, in quotation marks. This causes your entry to be a text string, rather than a literal variable name.

MORE INFORMATION
For example, if you type

"A$" in the Text$ box of the Option Button Information dialog box, the text is enclosed in quotation marks and appears on the button as A$ if the Auto Quote check box is selected. If the Auto Quote check box is not selected, &quot;A$&quot; is treated as a variable name, and the value A$ appears on the button face.

The following examples show the difference between the macro text of a dialog box created with the Auto Quote check box selected and the macro text of a dialog box with the Auto Quote check box cleared, when Bill$ is typed in the Text$ box:

  Auto Quote check box SELECTED. (Use this option when you want to use fixed text as button text): "PushButton 10, 6, 88, 21, &quot;Bill"PushButton 10, 6, 88, 21, &quot;Bill{{blockquote|text=PushButton 10, 6, 88, 21, &quot;Bill$&quot;}}quot;"quot;" Note: The text string &quot;Bill$&quot; (without the quotation marks) appears as the button text.   Auto Quote check box CLEARED. (Use this option when you want to use the value of a variable as button text): "PushButton 10, 6, 88, 21, Bill$" Note: If the value of Bill$ is &quot;Tree,&quot; &quot;Tree&quot; (without the quotation marks) appears as the button text. 

The Macro Dialog Editor is used to create custom dialog boxes for use with Word for Windows WordBasic macros. For more information on the Auto Quote option, query on the following words in the Microsoft Knowledge Base:

"auto and quote and macrode.exe and"