Multiple Multipage items in the same userform

jmk15315

Board Regular
Joined
Nov 7, 2021
Messages
59
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

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
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,216,107
Messages
6,128,866
Members
449,475
Latest member
Parik11

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