Question conserning userforms - multipage / page selection

jdavis9

Active Member
Joined
Mar 8, 2002
Messages
337
When using a multipage in an userform, how do I select a specific page to open when the userform launches. For example, when I start the userform the first time, say from worksheet "rawdata", page1 will be displayed? Then, if I open it from some other sheet a different page will be displayed?
The user could obviously just select the page from the tab at the top of the multipage, but it would be nice to have the correct page displayed when opened.

Something along the lines of sheets("rawdata").select, but for userforms multipage.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Re: Question conserning userforms - multipage / page selecti

Like this:

Code:
Private Sub UserForm_Initialize()
    Select Case ActiveSheet.Name
        Case "Sheet1"
            MultiPage1.Value = 0
        Case "Sheet2"
            MultiPage1.Value = 1
    End Select
End Sub
 
Upvote 0
Re: Question conserning userforms - multipage / page selecti

The value relates to the page number?
 
Upvote 0
I was trying to make it much more complicated than it was.

Thanks again for the help......
 
Upvote 0

Forum statistics

Threads
1,221,689
Messages
6,161,302
Members
451,695
Latest member
Doug Mize 1024

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top