View Single Post
  #17   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default CheckBoxes Stack up when Rows are hidden and unhidden

Check your other post in the other newsgroup.

There's no reason to multipost.

MWL wrote:

A bit more clarity surrounding my problem.

I'm using Excel 2002 and I've got a number of check boxes which are
currently hidden in rows 16:19.

How can you automatically unhide them when another check box (which isn't
hidden) is selected?

I've tried the following code but it objects when it gets to
"ActiveSheet.Shapes("CheckBox12").Select":

Private Sub CheckBox1_Click()

Rows("15:20").Select
Range("A20").Activate
Selection.EntireRow.Hidden = False
ActiveSheet.Shapes("CheckBox12").Select
Selection.Visible = True
ActiveSheet.Shapes("CheckBox13").Select
Selection.Visible = True
ActiveSheet.Shapes("CheckBox14").Select
Selection.Visible = True
ActiveSheet.Shapes("CheckBox15").Select
Selection.Visible = True

End Sub

"Dave Peterson" wrote:

There are two checkboxes that look very much alike.

The checkbox from the Forms toolbar does not allow this setting.

The checkbox from the control toolbox toolbar does allow it.

Are you sure you used the checkbox that you really wanted to use???

Carla wrote:

Dave, this is an old one, but it is assisting me with fixing my current
problem. The "move and size with cells" is gray, not an option to choose.
I'm sure that is why I am having a similar problem as the person below. Any
insight as to why I am not being allowed the option to check that box? The
other two are available to pick.

Thanks,
Carla
St. Petersburg, FL

"Dave Peterson" wrote:

If you're using checkboxes from the Control Toolbox Toolbar, you can select them
all and then rightclick on the selection and:

Format Control|Properties tab|Check Move and size with cells

And make sure that each checkbox is completely in that cell/row.

If you're using checkboxes from the Forms toolbar, you won't be able to do
this. (I'd replace them with the control toolbox toolbar version.)

Goldenfoot wrote:

I have 8 check boxes in Excel on rows 1:4 and 6:9. I have other macros that
hide and unhide these rows together or separately. When all rows are hidden
and then unhidden, the checkboxes all stack up at the bottom on row 10.

Any property value I am overlooking with respect to the movements?

Thanks,
GoldenFoot

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson