Giordano Bruno

Well-known Member
Joined
Jan 7, 2007
Messages
1,345
On one worksheet I have a group of buttons (not actually grouped, but just adjacent). When I click one of the buttons is unhides another worksheet and hides the first worksheet. The buttons show as an image on the second worksheet and the real buttons on the second worksheet are not visible. If I change worksheets and then back again the grouped button image goes and the correct buttons show.
If anyone has a solution to this problem I would be very grateful.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hello,

What kind of Buttons are you dealing ...?

Most probably with ActiveX ones ... the problem would disappear ...
 
Upvote 0
Hi James. Thanks for the reply. They're just shapes to which I've attached some code. I have found a way to make the problem go away. The code not only changed worksheets, but after the change had been made, also added the line
ActiveSheet.PageSetup.PrintArea = "$A$7:$G$" & LastRow
I have removed this line and added it to a print button on the target worksheet. I would prefer to keep the line of code with the change sheets code, but it creates this problem when included with the original code.
 
Upvote 0

Forum statistics

Threads
1,215,440
Messages
6,124,882
Members
449,193
Latest member
PurplePlop

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