1

I have this ActiveX checkbox in Excel and I want to change the size of the box.

enter image description here

I know I can do this if I lock it to a cell and change the cell size. Is there another way?

1 Answer 1

1

Use the Shape.ScaleHeight, Shape.ScaleWidth Methods

Sub ChangeShapeSize()
Dim Ht As Single, Wd As Single

    Ht = 1.75
    Wd = 2.75

    With Worksheets(1).Shapes("CheckBox1")
        .ScaleHeight Ht, msoFalse, msoScaleFromTopLeft
        .ScaleWidth Wd, msoFalse, msoScaleFromTopLeft
    End With

End Sub
Sign up to request clarification or add additional context in comments.

3 Comments

Can you please give me an example on a checkbox?
I added an example to my original post, if this works for you could you please mark as answered? Thanks
This scales the frame of the checkbox and not the checkbox shape itself

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.