• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 741
  • Last Modified:

Use VBA code to change tabs (or pages) on a multitab / multipage form in Outlook

I created an Outlook 2003 form with two pages (e.g. P.2 and P.3) displayed.
When a user opens the form it's on the first page (e.g. P.2).  While completing the form, if they put a check in the box "Fees Paid" (name = chkFeesPaid), then I'd like the form to automatically switch to the next tab (or page) which is named P.3.

Here's my visual basic code so far, but I don't know how to get the focus on P.3.
   if Item.UserProperties("Fees Paid").Value = true then
      msgbox "Complete Credit Card Information on Page 3"
         NEED CODE HERE TO PUT THE FOCUS ON THE TAB OR PAGE 3
            Else
               End if

Can anyone help me.  Thanks in advance.
0
Senniger1
Asked:
Senniger1
1 Solution
 
peakpeakCommented:
0
 
David LeeCommented:
Hi, Senniger1.  

Here's the command you want.

Item.GetInspector.SetCurrentFormPage "P.3"
0
 
Senniger1Author Commented:
Exactly what I needed.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now