Multi page on user forms

Pauljj

Well-known Member
Joined
Mar 28, 2004
Messages
2,047
Afternoon all,

Is it possible to change the back ground colour on the multipages ? no default option appears ? also The caption you add to the pages, can that caption be formatted, as I wanted it to appear font size 12 and in bold ?


Thanks

Pauljj
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
The Multipage color can only be colored if you try the following steps:
1. Add your Multipage to Your userform
2. Add a image control to your Userform
3. Set the background color of your image control to Yellow or some other color and Backstyle to Opaque
4. Place your Image control over your Mutipage.
5. Right click on image control and choose send backwards
6. Now you should add your other controls you want to your Multipage
7. You will have to do the same thing to each multipage.
8. Be sure and wait till you have the image control installed over the multipage before adding other controls to the multipage.


There is no way I know of to color the multipage tab or change font size.
 
Upvote 0
And does this script have to run every time the Userform is opened?

Yes... something as simple as this would set the colors of page0 and page1 in the form's Initialize event
Code:
Private Sub UserForm_Initialize() 
    '// Set the Pages BackColors .
 
    Call SetBackColor(Page:=MultiPage1.Pages(0), BackColor:=vbRed)
    Call SetBackColor(Page:=MultiPage1.Pages(1), BackColor:=RGB(20, 200, 100))
 
End Sub
 
Upvote 0
Yes... something as simple as this would set the colors of page0 and page1 in the form's Initialize event
Code:
Private Sub UserForm_Initialize() 
    '// Set the Pages BackColors .
 
    Call SetBackColor(Page:=MultiPage1.Pages(0), BackColor:=vbRed)
    Call SetBackColor(Page:=MultiPage1.Pages(1), BackColor:=RGB(20, 200, 100))
 
End Sub

Thanks for sharing this and the original poster may like to do it this way. But I still like my ideal better. My way is hardcoded and I understand it. I never like using long drawn out code I do not understand just to save me a few steps when I set up my Userform.
But again glad you shared another way.
 
Upvote 0
Thanks for sharing this and the original poster may like to do it this way. But I still like my ideal better. My way is hardcoded and I understand it. I never like using long drawn out code I do not understand just to save me a few steps when I set up my Userform.
But again glad you shared another way.
You are welcome .
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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