Setting the page index in a mulipage user form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I got some help ealry on when I first started using userforms and I wanted
the page to also be the default page so I added MultiPage1.Value = 0 to the
UserForm_Initialize() sub. Now I want to be able to preselt which page is the
"active" page, how can I do this?

Sub UserForm_Initialize()
Me.Height = Application.Height
Me.Width = Application.Width
MultiPage1.Value = 0
End Sub
 
zero is the first page. If you wanted the third page to be the topmost page
you would do

Sub UserForm_Initialize()
Me.Height = Application.Height
Me.Width = Application.Width
MultiPage1.Value = 2
End Sub
 
Tom,

Thanks, but what I needed to do was be able to pick and change which is the
default page and I was not sure how. I simply replaced the 2 in your example
with a variable before the userform.show and this seems to have done the
trick. Many thanks.
 

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

Back
Top