+ Reply to Thread
Results 1 to 5 of 5

events for tabs in a userform?

  1. #1
    Registered User
    Join Date
    07-22-2005
    Location
    canada
    Posts
    73

    events for tabs in a userform?

    I was just wondering if their is a way to set events for when a specific
    tab becomes active?

    tab1 / tab2 / tab3

    if tab1.active = true then

    blah blah...
    else if tab2.active = true then
    blah blah.

    end if

    stupid example, but it's basically what I'm looking to do.

    thanks in advance,

    oliver.

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Do you mean pages in userform ... ?

    Carim

  3. #3
    Forum Contributor
    Join Date
    07-13-2006
    Posts
    400
    Quote Originally Posted by spyrule
    I was just wondering if their is a way to set events for when a specific
    tab becomes active?

    tab1 / tab2 / tab3

    if tab1.active = true then

    blah blah...
    else if tab2.active = true then
    blah blah.

    end if

    stupid example, but it's basically what I'm looking to do.

    thanks in advance,

    oliver.
    I think this is what you're looking for:
    in the userform code:

    Private Sub TabStrip1_Change()
    MsgBox (TabStrip1.Value)
    End Sub

    note that the first tab is 0, second is 1, etc.

  4. #4
    Registered User
    Join Date
    07-22-2005
    Location
    canada
    Posts
    73

    more like sub-multipage control.

    Fairly close there MDubbelboer, however it's more like this :


    If MultiPage3.tab1.Enabled = False Then
    MultiPage4.Enabled = False 'This is a sub multipage control inside the multipage3 control.

    Does this clarify at all ?

    Thanks in advance,

    Oliver.

  5. #5
    Forum Contributor
    Join Date
    11-16-2004
    Posts
    282

    MultiPage events

    Oliver,

    Try this:
    Please Login or Register  to view this content.
    Hope this helps,
    theDude

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1