Learn how to a build a cloud-first strategyRegister Now


BackColor in Excel VBA Multipage for individual pages

Posted on 2011-05-06
Medium Priority
Last Modified: 2012-05-11
Has anybody found a way to set the backcolor on individual pages of a multipage control in Excel VBA?
Question by:NormanMitchell
LVL 22

Accepted Solution

rspahitz earned 1000 total points
ID: 35707794
If you select the Multipage object, you can set the area behind the tabs, but I suspect that's not what you want.

Since the pages themselves don't support a background color, a trick is to add a label that has no text and spans the entire region of the page, then put whatever background color you want.

When you eventually get to VB.Net, the tab/page controls indirectly support that feature.

Assisted Solution

wellous earned 1000 total points
ID: 35715360

you can work around this problem as follows:
1/ Place a frame on your form in which you place the multipage control.
2/ Set the top and left values of the multipage outside the frame (e.g. -5).
3/ Ajust the height and width of the multipage so that its edges are no longer visible.
4/ Now you can place a frame on every page of the multipage control and give it the desired background color.
5/ You can control the multipage control by setting its value from your code.


you can resolve the situation by fill the multipage control with a .jpg file with a cool background... but will not use the buttons you can control also from the code.

Good luck,

Author Closing Comment

ID: 35718129
Again great work by the team of experts!

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question