+ Reply to Thread
Results 1 to 5 of 5

Multiform Tab Colours

  1. #1
    Registered User
    Join Date
    11-05-2005
    Posts
    10

    Question Multiform Tab Colours

    Someone somewhere must know the code to change the grey tabs in a multiform to a different colour. Or even let my background picture cover all the tabs. Grey is not the colour of the future.


  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning Shake

    You could try using this code - don't know if it's quite what you're looking for but they seem to be the only colour options available for the multipage control. The code, of course, assumes that your multipage is called MultiPage1 and needs to be inserted into your UserForm_Initialize routine.

    MultiPage1.BackColor = RGB(64, 0, 0)
    MultiPage1.ForeColor = RGB(255, 0, 0)

    HTH

    DominicB

  3. #3
    Registered User
    Join Date
    11-05-2005
    Posts
    10

    MultiForm Tab Colours

    Thanks DominicB, I does change the colour of the form next to the Tabs. However the Tabs stay Grey.

    Is this one of those things that seems like it should be simple but is actualy a nightmare to try and change?

    Maybe Tabs just need to be Grey!

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Shake,

    I wanted to change the tab color on a MultiPage sometime ago. I thought if all else failed it could be done using the API, but to do that one needs the window handle of the object. Unfortunately that isn't available directly through VBA. So on and so forth...I think in this case it is WYSIWYG. Would be nice to change the colors though.

    Sincerely,
    Leith Ross

  5. #5
    Tom Ogilvy
    Guest

    Re: Multiform Tab Colours

    Just to affirm:
    MSForms controls are windowless controls. So the API won't work.

    --
    Regards,
    Tom Ogilvy


    "Leith Ross" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Hello Shake,
    >
    > I wanted to change the tab color on a MultiPage sometime ago. I thought
    > if all else failed it could be done using the API, but to do that one
    > needs the window handle of the object. Unfortunately that isn't
    > available directly through VBA. So on and so forth...I think in this
    > case it is WYSIWYG. Would be nice to change the colors though.
    >
    > Sincerely,
    > Leith Ross
    >
    >
    > --
    > Leith Ross
    > ------------------------------------------------------------------------
    > Leith Ross's Profile:

    http://www.excelforum.com/member.php...o&userid=18465
    > View this thread: http://www.excelforum.com/showthread...hreadid=482554
    >




+ 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