Returns a reference to the controls object for the page.
Read-only property
Set variable = object.Controls |
The Controls property is the default property for the Page object. Therefore, the following two lines of code will yield the same result:
Set objButton = Application.Forms("frmMyForm").Pages("pgPage1").Controls("btnApply")
Set objButton = Application.Forms("frmMyForm").Pages("pgPage1")("btnApply")
Set objButton = Application.Forms("frmMyForm").Pages("pgPage1").Controls("btnApply")
Set objButton = Application.Forms("frmMyForm").Pages("pgPage1")("btnApply")