Microsoft KB Archive/106332: Difference between revisions
(importing KB archive) |
m (Text replacement - """ to """) |
||
Line 30: | Line 30: | ||
CheckBoxFormField </pre> | CheckBoxFormField </pre> | ||
This article supplements the information in online Help. To open this Help topic in Word for Windows, click Contents on the Help menu and then choose the | This article supplements the information in online Help. To open this Help topic in Word for Windows, click Contents on the Help menu and then choose the "Programming with Microsoft Word" topic. In Word for the Macintosh, click the Help icon, select Microsoft Word Help and choose the "Programming with Microsoft Word" topic. | ||
<br /> | <br /> | ||
Line 51: | Line 51: | ||
<pre class="CODESAMP"> Sub MAIN | <pre class="CODESAMP"> Sub MAIN | ||
TableInsertTable .NumColumns = | TableInsertTable .NumColumns = "2", .NumRows = "2", .Apply = "167" | ||
TextFormField | TextFormField | ||
FormFieldOptions .Enable = 1, .TextDefault = | FormFieldOptions .Enable = 1, .TextDefault = "Text Form Field", \ | ||
.Type = 0 | .Type = 0 | ||
NextCell | NextCell | ||
Insert | Insert "This box is checked " | ||
CheckBoxFormField | CheckBoxFormField | ||
FormFieldOptions .Enable = 1, .Type = 1, .CheckDefault = 1 | FormFieldOptions .Enable = 1, .Type = 1, .CheckDefault = 1 |
Latest revision as of 10:19, 20 July 2020
WD: WordBasic Examples: TextFormField, CheckBoxFormField |
Q106332
The information in this article applies to:
- Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
- Microsoft Word for Windows NT, version 6.0
- Microsoft Word for Windows, versions 7.0, 7.0a
- Microsoft Word for the Macintosh, versions 6.0, 6.0.1
SUMMARY
This article contains a sample macro that demonstrates the use of the following WordBasic statements or functions:
TextFormField CheckBoxFormField
This article supplements the information in online Help. To open this Help topic in Word for Windows, click Contents on the Help menu and then choose the "Programming with Microsoft Word" topic. In Word for the Macintosh, click the Help icon, select Microsoft Word Help and choose the "Programming with Microsoft Word" topic.
MORE INFORMATION
TextFormField
CheckBoxFormField
Syntax:
TextFormField CheckBoxFormField
Example:
This sample macro inserts a table into a document then puts a text form field in the first cell.
Sub MAIN TableInsertTable .NumColumns = "2", .NumRows = "2", .Apply = "167" TextFormField FormFieldOptions .Enable = 1, .TextDefault = "Text Form Field", \ .Type = 0 NextCell Insert "This box is checked " CheckBoxFormField FormFieldOptions .Enable = 1, .Type = 1, .CheckDefault = 1 End Sub
Additional query words:
Keywords : kbmacro kbprg kbdtacode kbmacroexample winword macword word6 word7 word95
Issue type : kbhowto kbinfo
Technology :
Last Reviewed: November 4, 2000 |