Active X or Form Controls???

wisemank

Board Regular
Joined
Jun 21, 2010
Messages
129
Please read and assist if you have a solution...:confused:. I have worksheets that require a check boxes to hide or unhide Charts or additional worksheets - nice feature! After a (un-repetetive) few clicks and or unclicks the check boxes freak out and the text associated with the check box resize themselves or reposition themselves...:confused: ANY IDEA WHY???? OR can I use cell data to do the same function control (eg. If A1="x" then unhide or hide worksheet 1)? this way I can delete the silly check boxes and not lose the functionality. Also have the same issue on either Ver 2007 or ver 2010. Thanks in advanced....:biggrin:
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi,
no idea why it would change, the code behind them may say why.

You can use the cells but they have to "change" but that would work fine.

You use the worksheet change event (vba editor, list on left, double click sheet 1 or 2 whichever its on)

then its a matter of telling it what to do (im sure there is better ways but a start would be

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$A$1" Then
If Sheet1.Range("A1") = "x" Then
'do stuff

Else
'other things
End If
End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,216,231
Messages
6,129,631
Members
449,522
Latest member
natalia188

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