Results 1 to 6 of 6
  1. #1
    New Lounger
    Join Date
    Dec 2003
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Command Button to access Multipage (2002)

    I have a command button on top of a several layers of multipage strips on a userform. I'm trying to click this button and have it show me any particular single page on one of the multistrips. I'd like it to act like a hyperlink. I've tried the Pages object without any success. I'm sure this can be done...does anyone know the trick?

    Thanks,
    Jamesian

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: Command Button to access Multipage (2002)

    You can access a page by setting the value of the Multipage object (it is zero based)
    Assuming the "multipage" is named MultiPage1 (change as appropriate)

    MultiPage1.Value = 0
    selects the first page

    MultiPage1.Value = 1
    the 2nd page

    etc

    Steve

  3. #3
    New Lounger
    Join Date
    Dec 2003
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Command Button to access Multipage (2002)

    Steve, my apologies, why can't I get this to work?

  4. #4
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Command Button to access Multipage (2002)

    Steve's method seems to work fine for me. Try this for example:
    <pre>Private Sub CommandButton1_Click()
    'Toggle selected page on a 2-page multipage
    '
    If MultiPage1.Value = 0 Then
    MultiPage1.Value = 1
    Else
    MultiPage1.Value = 0
    End If

    End Sub
    </pre>


    Alan

  5. #5
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: Command Button to access Multipage (2002)

    Could you explain in more detail what you have and what you want?

    Steve

  6. #6
    New Lounger
    Join Date
    Dec 2003
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Command Button to access Multipage (2002)

    Actually, this works now, and I should have been able to solve it myself, but I was too focused on Pages to see anything else. Now I can also access multipage tabs within different layers of multipage tabs.

    Thanks for the tremendous help guys.

    Jamesian

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •