Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a UserForm with a Multipage control that has 3 pages. I want to change
the page order of the control when I access the UserForm from different sheets in my workbook. i.e. MultiPage1 has 3 pages (Cashier, Tender, Journal). If I access UserForm from Tender worksheet, I want the Tender page of the MultiPage1 control to be in the 1st position. If accessing the UserForm from the Journal worksheet I want the Journal page of the MultiPage1 control to be in the 1st position. What code can I use when running UserForm1.Show to change the page order as described above? Thanks in advance for any help given. Sam |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Private Sub UserForm_Initialize()
Select Case ActiveSheet.Name Case "Cashier" ''assumed first Case "Tender" MultiPage1.Pages(1).Index = 0 Case "Journal" MultiPage1.Pages(2).Index = 0 End Select MultiPage1.Value = 0 End Sub -- Jim "Sam" wrote in message ... |I have a UserForm with a Multipage control that has 3 pages. I want to change | the page order of the control when I access the UserForm from different | sheets in my workbook. i.e. MultiPage1 has 3 pages (Cashier, Tender, | Journal). If I access UserForm from Tender worksheet, I want the Tender page | of the MultiPage1 control to be in the 1st position. If accessing the | UserForm from the Journal worksheet I want the Journal page of the MultiPage1 | control to be in the 1st position. What code can I use when running | UserForm1.Show to change the page order as described above? | | Thanks in advance for any help given. | | Sam |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Jim. Works great!
"Jim Rech" wrote: Private Sub UserForm_Initialize() Select Case ActiveSheet.Name Case "Cashier" ''assumed first Case "Tender" MultiPage1.Pages(1).Index = 0 Case "Journal" MultiPage1.Pages(2).Index = 0 End Select MultiPage1.Value = 0 End Sub -- Jim "Sam" wrote in message ... |I have a UserForm with a Multipage control that has 3 pages. I want to change | the page order of the control when I access the UserForm from different | sheets in my workbook. i.e. MultiPage1 has 3 pages (Cashier, Tender, | Journal). If I access UserForm from Tender worksheet, I want the Tender page | of the MultiPage1 control to be in the 1st position. If accessing the | UserForm from the Journal worksheet I want the Journal page of the MultiPage1 | control to be in the 1st position. What code can I use when running | UserForm1.Show to change the page order as described above? | | Thanks in advance for any help given. | | Sam |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Multipage - default to particular page | Excel Programming | |||
Multipage - Tab Order | Excel Programming | |||
I want a purchase order that includes page number (if to be order. | New Users to Excel | |||
How do I set the focus to a page in a multipage | Excel Programming | |||
how to put a reference from a page of a multipage form to another page | Excel Programming |