Results 1 to 4 of 4
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Multi-page control (Word XP)

    When I display a custom user form, I want page 1 of my multi-page control to have focus. Is there a way to force this?

    Thanks,
    Richard

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Multi-page control (Word XP)

    You could use the Initialize event of the userform:

    Private Sub UserForm_Initialize()
    With Me.MultiPage1
    .Value = 0
    .SetFocus
    End With
    End Sub

    Replace MultiPage1 with the name of your multipage control.

  3. #3
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Re: Multi-page control (Word XP)

    Thanks. It was 'Value' that I didn't remember was associated with this.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Multi-page control (Word XP)

    Note that Value is zero-based: Value = 0 activates the first tab page, Value = 1 activates the second tab page, etc.

Posting Permissions

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