#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Mutipage

Your code is not valid:

MultiPage1.Page(1).Visible = True

you select the pages by value:

UserForm1.MultiPage1.Value = 0

0 is the first sheet in the index
--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"Richard" wrote:

Hello,

Is there anyone can help with the Mutipage control?

I want to change the page based on user input by using VBA coding in the
UserForm_Initializing.

Example
Dim strImput as String

Private Sub UserForm_Initialize()

strImput = Worksheets(strActiveSheet).Cells(3, 2).Value

If strImput = "page2" Then

MultiPage1.Page(1).Visible = True

Else

MultiPage1.Page(2).Visible = True

End If

End Sub

I'm having is problem with "MultiPage1.Page(2).Visible = True".

This code is not working.

Please Help.....................

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
Mutipage Peter T Excel Programming 0 December 26th 06 04:56 PM
MutiPage control question Patrick Simonds Excel Programming 7 August 6th 06 11:00 PM
Extracting a Single Worksheet froma Mutipage Workbook Tom Excel Discussion (Misc queries) 4 March 16th 06 04:17 PM


All times are GMT +1. The time now is 04:02 AM.

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

About Us

"It's about Microsoft Excel"