Checkboxs and option buttons "move and size with cells" - don't

wpryan

Well-known Member
Joined
May 26, 2009
Messages
534
Office Version
  1. 365
Platform
  1. Windows
Hi All, I have a worksheet that previously had some "Yes / No" options in a drop-down list in various cells. This is a workflow checklist... I decided to replace the dropdown lists with checkboxes to facilite data entry. The workflow is dependent on the selection in a different worksheet, which hides or shows certain rows depending on the selection.
I added the checkboxes and option buttons with the default selection "move and size with cells", and assigned the output to certain cells. I then modified the code to hide a row, expecting that the rows under it that also have checkboxes, will move with the rows. It isn't happening. See code below. I made a small video, converted it to .gif format and tried uploading it, but apparently either the size of 728 kb or dimensions 1024 x 576 are too big for the upload.
VBA Code:
If Model <> "Z8 or Z8 Neo" And Purpose = "Preventive Maintenance" Then
            With Sheets("PM")
                'Exchange Consumables
                .Rows("12").Hidden = True
                .Shapes("optPM_R9.1").Visible = False
                .Shapes("optPM_R9.2").Visible = False
                .Shapes("fr_R9").Visible = False
            End With
 End If
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
OK... I discovered that if one starts hiding the rows and shapes from the bottom of the worksheet, that the checkboxes all line up correctly with the rows afterwards...
 
Upvote 0

Forum statistics

Threads
1,215,528
Messages
6,125,342
Members
449,218
Latest member
Excel Master

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