In Excel's Immediate Window within the Visual Basic Editor, I can refer to controls of a UserForm in Design Mode like this,
?Application.VBE.SelectedVBComponent.Designer.Controls.Count
How do I loop through controls that are selected in Design Mode using a regular subroutine? For example, I'm working on a UserForm. Some of the controls are selected, but changing the properties of these controls using the Property Window is not an option. It must be done by code.