Change the Name of a Control

The following code example uses the ModifiedFormPages property of the current Inspector object to set the Microsoft Forms 2.0 Name property of a CheckBox on a page named "Test" to "Selection."

Item.GetInspector.ModifiedFormPages("Test").Checkbox1.Name = "Selection"

Note Each control should have a unique name.

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.