Hide or Show a Control Programmatically

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

Item.GetInspector.ModifiedFormPages("Test").Checkbox1.Visible = False

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.