How to: Use Control Values while Code is Running
PowerPoint Developer Reference |
Some control properties can be set and returned while Microsoft Visual Basic code is running. The following example sets the Text property of a text box to "Hello."
|
The data entered on a form by a user is lost when the form is closed. If you return the values of controls on a form after the form has been unloaded, you get the initial values for the controls rather than the values the user entered.
If you want to save the data entered on a form, you can save the information to module-level variables while the form is still running. The following example displays a form and saves the form data.
|
See Also
- Control and dialog box events
- How to: Add Controls to Documents
- How to: Add Controls to UserForms
- How to: Create Custom Dialog Boxes
- How to: Create UserForms
- How to: Display Custom Dialog Boxes
- How to: Initialize Control Properties
- How to: Set Control Properties
- How to: Use ActiveX Controls on Documents
- How to: Use ActiveX Controls on Slides