Referencing Userform Controls

J

JeremyJ

How can I Reference all of the Controls with in a Userform MultiPage page?
For example:

Dim ctrl as Variant
For each ctrl in Userform1.Multipage1.Pages("Page1")
<code>
Next ctrl
 
D

Dave Peterson

Dim ctrl As Control
For Each ctrl In Me.MultiPage1.Pages("Page1").Controls
MsgBox ctrl.Name
Next ctrl
 
Top