Programmatically moving between pages in a form

L

leehambly

Hi... have just started developing an outlook form and am struggling with the
abundantly feature rich vb ui!

So, I have a number of pages on my form and I wish to move the user through
them by using forward and back buttons (command buttons on the form)... it is
all remarkably simple... just dunno how to do it... and it just isnt clear at
all.

I have seen the multiple pages code, which isnt appropriate.

Ideally, I would have only one page showing (so there are no page tabs) and
then when the forward or back button is pressed (after the requisite
validation), the new page will become visible, focus will be set to the first
control on the new page and then the previous page will be hidden. Stepping
you forward and back through a wizard basically.

Any ideas or pointers... more than happy to pick the bones out of other
solutions... but currently everything I come across seems to point to the
same multiple page control on an OutlookVB website and frankly, I don't wanna
do it that way.

Thanks for your time and please let me know if you need more information.

Lee
 
S

Sue Mosher [MVP]

Welcome to Visual Notepad, as we so fondly call it!

The method you're looking for is Inspector.SetCurrentFormPage:

Item.GetInspector.SetCurrentFormPage "My Form Page's Name"

You can also use ShowFormPage and HideFormPage as needed.

When in doubt, check the object browser: Press ALt+F11 to open the VBA
environment in Outlook, then press F2. Switch from <All Libraries> to
Outlook to browse all Outlook objects and their properties, methods, and
events. Select any object or member, then press F1 to see its Help topic.
 
L

leehambly

Cheers Sue... fairly much spot on. Thanks again.
Welcome to Visual Notepad, as we so fondly call it!

The method you're looking for is Inspector.SetCurrentFormPage:

Item.GetInspector.SetCurrentFormPage "My Form Page's Name"

You can also use ShowFormPage and HideFormPage as needed.

When in doubt, check the object browser: Press ALt+F11 to open the VBA
environment in Outlook, then press F2. Switch from <All Libraries> to
Outlook to browse all Outlook objects and their properties, methods, and
events. Select any object or member, then press F1 to see its Help topic.
Hi... have just started developing an outlook form and am struggling with
the
[quoted text clipped - 28 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top