help with mulitpages and ComboBoxes

jose001

Board Regular
Joined
Mar 27, 2006
Messages
103
Morning guys,

I have an issue with a multipage which I really hope someone might be able to help me with. I have a very simple form which consists of a comboBox and a 40 page multiform. I’d like to link pages in the form to options in the comboBox so that it changes when the comboBox changes, is this possible. I’ve googled for hours and can’t find a sausage so I’m guessing it’s either a very basic question which I shouldn’t be asking :p or not possible? I thought it might be as simple as an ‘IF’ statement but I can’t get that working, I can’t move forward with my project until I manage to do this so any help would be greatly appreciated.

Many Thanks
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Something like this...

Code:
Private Sub ComboBox1_Change()
    Select Case ComboBox1.Text
        Case "Option 1"
            UserForm1.MultiPage1.Pages(0).Enabled = True
        Case "Option 2"
            UserForm1.MultiPage1.Pages(2).Enabled = True
        Case "Option 3"
            UserForm1.MultiPage1.Pages(3).Enabled = True
        Case "Option 4"
            UserForm1.MultiPage1.Pages(5).Enabled = True
        Case "Option 5"
            UserForm1.MultiPage1.Pages(17).Enabled = True
        Case "Option 6"
            UserForm1.MultiPage1.Pages(20).Enabled = True
            UserForm1.MultiPage1.Pages(20).Textbox1.Text = "You got to this page by changing the ComboBox selection!"
        Case Else
            'Don't do anything for unhandled selections
    End Select
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,543
Members
452,924
Latest member
JackiG

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