Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 699
Default MultiPage Page Order

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 533
Default MultiPage Page Order

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   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 699
Default MultiPage Page Order

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multipage - default to particular page Clayman Excel Programming 3 June 25th 07 03:08 PM
Multipage - Tab Order Rastus Excel Programming 0 March 21st 06 05:16 AM
I want a purchase order that includes page number (if to be order. Angela New Users to Excel 1 December 3rd 04 04:39 PM
How do I set the focus to a page in a multipage Azza Excel Programming 2 November 23rd 04 10:42 PM
how to put a reference from a page of a multipage form to another page Valeria[_2_] Excel Programming 2 January 25th 04 08:21 AM


All times are GMT +1. The time now is 12:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"