Manipulating Controls Programmatically
In this section
How to: Accept User Input and Display the Values of Controls on a Form
How to: Change the Accelerator and Caption of a Command Button
How to: Resize a Control Horizontally and Vertically with the Form
How to: Align the Caption of an Option Button with the Control
How to: Allow Multiple Lines, Word Wrapping, and Scrolling in a Text Box
How to: Allow the Null State for a Check Box and a Toggle Button
How to: Use the Controls Collection to Move Controls on a Page
How to: Control Character Matching in a Combo Box and List Box
How to: Control the Drop Button Style and When to Show the Drop Button
How to: Control the Selection Behavior and Drag Behavior When Entering a Text Box
How to: Control the Style and Selection Behavior of a List Box
How to: Display the Name of Each Control on a Form or a Page of a MultiPage Control
How to: Display the Number of Pages and Tabs in MultiPage and TabStrip Controls on a Form
How to: Enhance the Border Style, Color, and Special Effects of a Text Box Control
How to: Move a Text Box in Front of or Behind Another Control
How to: Reference a Custom Property that Has the Same Name as a Built-in Property of the Control
How to: Set the Item at the Top of a List and the Item that Has Focus in the List
How to: Set the Height and Width of Tabs in a MultiPage and a TabStrip Control
How to: Set the Number of Lines and the Length of Input in a Text Box
How to: Set the Style of Tabs for a MultiPage and a TabStrip Control
How to: Specify the Column in a Multi-Column List Box to Display to the User
How to: Specify the Column in a Multi-Column List Box to Store Data for the Control
How to: Undo and Redo an Action in a Text Box or a Combo Box
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for