EditBoxes Collection Object

Description

A collection of all the EditBox objects on the specified dialog sheet (edit boxes cannot be used on worksheets). Edit boxes allow the user to enter text or numbers. Unlike other controls, edit boxes do not have a Value property or a LinkedCell property. Edit boxes that are linked to list boxes to form combination list edit boxes are included in the ListBoxes collection.

Accessors

Use the Add method to create a new edit box and add it to the collection. The following example adds a new edit box to the dialog sheet named "Dialog1." The new edit box is positioned relative to the upper-left corner of the dialog frame.


Dim df As DialogFrame
Set df = DialogSheets("dialog1").DialogFrame
DialogSheets("dialog1").EditBoxes.Add df.Left + 10, _
    df.Top + 20, 100, 10

Use the EditBoxes method with an argument to access a single member of the collection or without an argument to access the entire collection at once. The following example empties all the edit boxes on the dialogsheet named "Dialog1."


DialogSheets("dialog1").EditBoxes.Text = ""

Properties

Application Property, Caption Property, Count Property, Creator Property, DisplayVerticalScrollBar Property, Enabled Property, Height Property, InputType Property, Left Property, Locked Property, MultiLine Property, OnAction Property, Parent Property, PasswordEdit Property, Placement Property, PrintObject Property, Text Property, Top Property, Visible Property, Width Property, ZOrder Property.

Methods

Add Method (Graphic Objects and Controls), BringToFront Method, Characters Method, Copy Method, CopyPicture Method, Cut Method, Delete Method, Duplicate Method, Group Method, Item Method, Select Method, ToBack Method.