Solved

Show one page in Multipage form first

Posted on 2000-05-09
1
131 Views
Last Modified: 2010-05-02
What do I do to always start on the same page (the first) in a Multipage form? As it is I don't know which page is shown when the multipage form is loaded.
0
Comment
Question by:davidsen
1 Comment
 
LVL 17

Accepted Solution

by:
calacuccia earned 50 total points
Comment Utility
Hi Davidsen,

Put this line of code in the UserForm1_Initialize event:

Private Sub UserForm_Initialize()
MultiPage1.Value = 0
End Sub

The value of 0 assigned to the Multipage control will set focus on the first page.

Changing numbers to 1, 2, 3 will set focus to other pages.

Good Luck
Calacuccia
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now