WD: FILLIN Field Is Limited to 255 CharactersLast reviewed: February 10, 1998Article ID: Q93706 |
The information in this article applies to:
SUMMARYThe Word FILLIN field prompts you for text that is used as the FILLIN field result. The maximum number of characters that can be entered in a FILLIN field is 255. To allow the user to type more than 255 characters, you can use the WordBasic InputBox$ command.
MORE INFORMATIONThe InputBox$ command displays a dialog box requesting a single item of data and returns the text entered in the dialog box when the user chooses the OK button. The syntax is as follows
a$ = InputBox$(Prompt$ [,Title$] [,Default$])where:
Prompt$ is the text displayed in the dialog box.
Title$ is the title displayed in the title bar of the dialog box;
if omitted, Word uses the title "Microsoft Word".
Default$ is the default text proposed in the text box of the dialog
box.
The InputBox$ command in the following macro assigns the text you enter
to the "a$" variable. The EditGoTo command is used to move the insertion
point to a defined bookmark name before inserting the contents of the a$
variable.
Sub MAIN
a$ = InputBox$("Type text")
EditGoTo "bookmark"
Insert a$
End Sub
For information about how to do this in Word 97, please see the following
article in the Microsoft Knowledge Base:
ARTICLE-ID: Q159261 TITLE : Textbox Form Control Circumvents 255 Character Limit of Fillin |
Additional query words: InputBox$
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |