+ Reply to Thread
Results 1 to 3 of 3

Multipage Control

Hybrid View

  1. #1
    Registered User
    Join Date
    01-11-2011
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    50

    Multipage Control

    Is is possible to set the width of each tab individually?

    Thanks, ABB

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Multipage Control

    No, but you can adapt the multipage's size based on it's value, e.g.

    Sub Private Multipage1_Change()
       multipage1.width=100 + multipage1.value*10
    End Sub



  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Multipage Control

    A little more on snb's contribution. If you want different widths for each tab something like this
    Option Explicit
    
    Private Sub MultiPage1_Change()
    With Me
    'multipage pages start at zero
    Select Case .MultiPage1.Value
    Case 0: .MultiPage1.Width = .Width * 0.85
    Case 1: .MultiPage1.Width = .Width * 0.5
    End Select
    End With
    End Sub
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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