Clear method (Microsoft Forms)
Removes all objects from an object or collection.
Syntax
object. Clear
The Clear method syntax has these parts:
Part | Description |
---|---|
object | Required. A valid object. |
Remarks
For a MultiPage or TabStrip, the Clear method deletes individual pages or tabs.
For a ListBox or ComboBox, Clear removes all entries in the list.
For a Controls collection, Clear deletes controls that were created at run time with the Add method. Using Clear on controls created at design time causes an error.
If the control is bound to data, the Clear method fails.
See also
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.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för