Add Objects to MultiPage Object on Worksheet

bs0d

Well-known Member
Joined
Dec 29, 2006
Messages
622
I've drawn a MultiPage object on a spreadsheet. I'd like to add objects on each page of the MultiPage object., but I don't see that it can be done through the Excel interface.

I've drawn the objects I need onto the sheet (various lables and such). And I planned to just change their contents based on which tab is clicked on the multipage. However, the root of my problem is getting the items to appear on top of the MultiPage. Specifically, buttons and labels will not appear on top, as desired when in design mode. When I exit design mode, MultiPage is always on top.

Any thoughts to fix this? Do I need to add the objects via VBA in a one-time code execution?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Right click the multipage, goto Multipage Object>Edit.

Right click the multipage again and select Toolbox...

You can now add controls from the toolbox to the pages of the multipage.
 
Upvote 0
Thanks Norie. I like the easy solutions! The downside seems to be needing redundant objects, unless there's a way to make each tab utilize the same listbox, for example.
 
Upvote 0
One more question - How do you access the objects within? For example, I use to populate my listbox this way:
Code:
 Sheets("Sheet1").lstComments.List = Application.Transpose(myResults.GetRows)
I added a MultiPage: MultiPageComments, with listbox: lstComments
If I try to populate the new listbox via code below:
Code:
 Sheets("Sheet1").MultiPageComments.Page1.lstComments.List = Application.Transpose(myResults.GetRows)
I get a Run-time 438 error: Object does not support this property or method.
 
Last edited:
Upvote 0
here's the correct code:
Code:
Sheets("Sheet1").MultiPageComments.Pages(0).lstComments.List = Application.Transpose(myResults.GetRows)

New problem -- Can I add a click event to the listbox within the tab of the MultiPage?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,263
Messages
6,123,956
Members
449,135
Latest member
jcschafer209

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