Check box form control - alignment format

FengXue

New Member
Joined
Oct 24, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I've been having trouble centering a check box form control on my excel sheet. I see under the Shape Format tab there is an Align option under the Arrange group; however, when clicking this option, the align center option is not available to use. Is the only option available to center a form control to manually move the check box to the approximate center of designated cell B23?
 

Attachments

  • Screenshot 2024-10-24 163930.png
    Screenshot 2024-10-24 163930.png
    36.8 KB · Views: 4
  • Screenshot 2024-10-24 164309.png
    Screenshot 2024-10-24 164309.png
    81.5 KB · Views: 4

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,)
I would think you'd have to go to Developer tab >Design Mode and select the control/shape first.
 
Upvote 0
I don't see a Checkbox in your example. I see a Note and a ComboBox (or ListBox). To center a CheckBox just Select the Cell, select the Insert tab in the Ribbon, and then click Check Box.
 
Upvote 0
Look at the image of the sheet, not of the dropped down ribbon control. There is a checkbox there.
 
Upvote 0
This is as close as I could get. Paste this codes in the Sheet code module that the CheckBox is on. Select the cell that the CheckBox is "in" and run this Subroutine.
VBA Code:
Option Explicit

Sub CenterCheckbox()
Dim cell As Range, cBox As Shape, i As Integer
Set cell = Selection
Set cBox = Me.Shapes("Check Box 1") ' Change to your CheckBox name
With cBox
    .DrawingObject.Caption = ""
    .Height = cell.Height
    .Width = cell.Width
    .Top = cell.Top
    .Left = cell.Left + cell.Width / 3
End With

End Sub
 
Upvote 0

Forum statistics

Threads
1,223,880
Messages
6,175,155
Members
452,615
Latest member
bogeys2birdies

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