Change Selected tab strip FONT tab color

Sharid

Well-known Member
Joined
Apr 22, 2007
Messages
1,064
Office Version
  1. 2016
Platform
  1. Windows
I have a tab strip on a userform (NOT a Multipage). The TAB STRIP has six pages on it, Is there a way that I can change the font color to indicate that this tab is active.

1609255050680.png
 
Jaffar I would be interested in your answer. My form is Modeless, Both 32 and 64 if possible
Hi,

Check out this thread:

For changing just the selected tab Font as requested, try something like this:
VBA Code:
Private Sub UserForm_Initialize()
    PaintTab MultiPage1.SelectedItem, True, vbRed, , False, Flat
End Sub

Private Sub MultiPage1_Change()

    Dim oPage As Control

    For Each oPage In Me.MultiPage1.Pages
        PaintTab oPage, IIf(oPage Is MultiPage1.SelectedItem, True, False), vbRed, , False, Flat
    Next oPage

End Sub

Change the arguments values to suit your needs.
 
Upvote 0

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,215,050
Messages
6,122,868
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top