Programmatically moving between pages in a form

Status
Not open for further replies.
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.

Sue Mosher

"leehambly" <u53101@uwe> wrote in message news:98b901a6ba2a6@uwe...
> 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
>
 
L

leehambly

Cheers Sue... fairly much spot on. Thanks again.

Sue Mosher [MVP] wrote:
> 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]
>

>> Lee
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
B Programmatically force html send and insert clipboard contents into body Outlook VBA and Custom Forms 0
Dr. Demento Programmatically encrypt email (2010) Using Outlook 10
oliv- Reduce the size of picture attachments: programmatically Outlook VBA and Custom Forms 3
B Adding controls programmatically Using Outlook 1
M programmatically make all Appointmentitem olResource Attendees unsendable Using Outlook 1
S Programmatically accessing Outlook Calendar data Using Outlook 1
R Send appointments data to a Form programmatically Outlook VBA and Custom Forms 2
M How to connect to SQL DB from outlook programmatically? Outlook VBA and Custom Forms 1
B Programmatically scheduling WebEx meetings through Outlook Outlook VBA and Custom Forms 1
N Help in programmatically setting formatting in an AppointmentItem Outlook VBA and Custom Forms 3
K Programmatically accessing Outlook properties Outlook VBA and Custom Forms 3
V How to programmatically set "Display reminders and tasks frm pstfolder Outlook VBA and Custom Forms 1
R Displaying a field from the field chooser programmatically Outlook VBA and Custom Forms 1
M How to programmatically select a outlook search folder? Outlook VBA and Custom Forms 1
M How to install custom mapi form programmatically? Outlook VBA and Custom Forms 1
A Programmatically duplicating BCM's "Link to Record" function BCM (Business Contact Manager) 2
B Accessing Outlook 2003 Signature Programmatically using C# Outlook VBA and Custom Forms 6
S Programmatically bring up Advanced Find for contacts? Outlook VBA and Custom Forms 1
S assign task programmatically Outlook VBA and Custom Forms 2
S do Reply, Reply to All, Forward programmatically Outlook VBA and Custom Forms 2
O Moving "tasks" to inbox in Outlook 2016 Using Outlook 1
Abraham Outlook 2013 Lost my folders when moving from PST to IMAP Using Outlook 11
F Moving Outlook to new PC Using Outlook 0
R Moved 6 months worth (approx 1500 emails) lost from moving from TPG inbox to Icloud inbox (folders) Using Outlook 3
A Moving Public Folders to New Database Exchange Server Administration 3
R Problem moving file “Email folders.pst” to new PC Using Outlook 5
Horsepower Moving emails between folder Outlook for Mac Outlook Wishlist 8
glnz Moving from Outlook 2003 to MS365 Outlook - need basics Using Outlook 4
E Having some trouble with a run-a-script rule (moving mail based on file type) Outlook VBA and Custom Forms 5
F Moving Contacts to New Profile Using Outlook 0
J Moving Imported folder Using Outlook 2
J Outlook 2016 Moving IMAP emails to Exchange Using Outlook 1
A .restrict results changing after moving to Exchange online Outlook VBA and Custom Forms 0
T I'm thinking about moving from outlook.com to the Outlook I have in my Office 365 Using Outlook 1
L Moving emails with similar subject and find the timings between the emails using outlook VBA macro Outlook VBA and Custom Forms 1
S Moving .OST file location unsuccessful! Using Outlook 6
M Moving mail to another folder is much slower than before (Office365) Using Outlook 0
D Any updates or fixes that would make this code stop working just moving emails to another folder Outlook VBA and Custom Forms 1
B Moving account, contacts & emails to another H/D with MSOutlook Using Outlook 5
M I'm Having problems Moving Contacts to a New List Using Outlook 8
D Moving Emails Based on Recipient/Sender Outlook VBA and Custom Forms 4
U Outlook 2010 'freezes' before moving emails Using Outlook 2
S Moving Emails Between Archive Folders Using Outlook 1
P Moving Outlook.pst & archive1.pst Using Outlook 3
A Moving archived contents in Outlook 2007 back into working folders Using Outlook 0
Diane Poremsky Moving Deleted Items Using Outlook 0
O Moving .ost file Using Outlook 12
Diane Poremsky Outlook.com is moving to Office 365! Using Outlook 3
Diane Poremsky Check Contacts before moving them to Hotmail Contacts folder Using Outlook 0
V Problem moving folders Using Outlook 4

Similar threads

Top