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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top