Multiple Multipage items in the same userform

jmk15315

Board Regular
Joined
Nov 7, 2021
Messages
73
Office Version
  1. 2013
  2. 2010
Platform
  1. Windows
Good evening,
I am trying to teach myself how to make userforms and one thing I was trying to do is create a userform that has a multipage inside a multipage. Is there a way to have a macro direct me to the appropriate tab in a "two-deep" multipage? I hope I am making sense.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I probably should have been more specific.
I have the userform created, but I am trying to figure out how to select it using a command button outside of the multipage.
 
Upvote 0
Let's say that you have a MultiPage control called MultiPage1, and then you have a second MultiPage control within the first one called MultiPage2.

To refer to the third page of MultiPage2, as an example, you would simply have the following...

VBA Code:
userform1.MultiPage2.Pages(2) 'page indexing starts at zero

Let's say that you have a TextBox in that third page of MultiPage2, and you want to refer to it, you could simply do it like this...

VBA Code:
userform1.TextBox1.Value

Or is it something else that you're looking for?
 
Upvote 0
Domenic, Thank you. I am a bit embarrassed as I knew it would be something stupidly simple. Thanks again.
 
Upvote 0

Forum statistics

Threads
1,223,943
Messages
6,175,552
Members
452,652
Latest member
eduedu

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