跳到主要内容

如何在Excel中快速插入多个复选框?

我们如何快速在Excel中插入多个复选框? 请在Excel中遵循以下棘手的方法:

使用填充手柄插入多个复选框

使用VBA代码插入多个复选框

使用 Kutools for Excel 一键插入和删除多个复选框


箭头蓝色右气泡 使用填充手柄插入多个复选框

在Excel中,Fill Handle是执行许多事情的强大功能。 它也可以填充复选框。 首先,您必须插入一个复选框。 进行如下操作:

1。 点击 开发商 在菜单栏中,然后单击 插页,然后选择下面的复选框图像 表格控制。 看截图:

文档插入多个复选框1

2。 单击复选框图像,您将看到加号指针,单击要添加复选框的位置。

文档插入多个复选框2

3。 选择复选框并将其移至单元格,然后删除该复选框的名称。

4。 然后选择复选框所在的单元格。然后将填充手柄拖到要填充的单元格范围内。 看截图:

文档插入多个复选框3


一键插入多个复选框:

Kutools for Excel's 批量插入复选框 实用程序可帮助您一次快速插入多个复选框。 单击以免费下载此功能。

doc插入多个复选框10

Kutools for Excel:具有300多个方便的Excel加载项,可以在30天内免费试用,没有任何限制。 立即下载并免费试用!


箭头蓝色右气泡 使用VBA代码插入多个复选框

如果您认为第一种方法有些麻烦,那么以下VBA代码可以帮助您轻松快速地插入多个复选框。

1。 点击 开发商 > Visual Basic中,一个新的 适用于应用程序的Microsoft Visual Basic 将显示一个窗口,单击 插页 > 模块,然后将以下代码输入到 模块:

Sub InsertCheckBoxes()
'Updateby Extendoffice
Dim Rng As Range
Dim WorkRng As Range
Dim Ws As Worksheet
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
Set Ws = Application.ActiveSheet
Application.ScreenUpdating = False
For Each Rng In WorkRng
    With Ws.CheckBoxes.Add(Rng.Left, Rng.Top, Rng.Width, Rng.Height)
        .Characters.Text = Rng.Value
    End With
Next
WorkRng.ClearContents
WorkRng.Select
Application.ScreenUpdating = True
End Sub

2。 然后点击 文档乘法计算 3 按钮运行代码。 然后将弹出一个提示框,提醒您选择要插入复选框的单元格范围。 看截图:

文档插入多个复选框4

3。 然后点击 OK,这些复选框已被整齐精美地插入了该范围。 看截图:

文档插入多个复选框5


箭头蓝色右气泡 使用 Kutools for Excel 插入多个复选框

在这里,我可以向您介绍一种轻松便捷的方式来插入多个复选框,Kutools for Excel,其 批量插入复选框 功能,您可以将复选框插入空白单元格或包含数据的单元格。

Kutools for Excel : 带有300多个便捷的Excel加载项,可以在30天内免费试用.

安装后 Kutools for Excel,请执行以下步骤:

1。 选择要插入复选框的单元格范围。

2。 点击 库工具 > 插页 > 批量插入复选框,请参见屏幕截图:

文档插入多个复选框06

3。 然后,您选择的单元格已被复选框填充,如以下屏幕截图所示:

将复选框插入空白单元格 将复选框插入数据单元格
文档插入多个复选框7 文档插入多个复选框8

提示。 如果您想快速删除多个复选框,请尝试使用 Kutools for Excel删除复选框 如以下屏幕截图所示。 它在60天内无限制地提供完整功能, 请下载并立即免费试用.

文档插入多个复选框9

Kutools for Excel:具有300多个方便的Excel加载项,可以在30天内免费试用,没有任何限制。 立即下载并免费试用!


箭头蓝色右气泡 使用 Kutools for Excel 插入和删除多个复选框

Kutools for Excel:具有300多个方便的Excel加载项,可以在30天内免费试用,没有任何限制。 立即下载并免费试用!

相关文章:

如何在Excel中快速删除多个复选框?

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (51)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thanks for the tips, could help me , I am trying to select multiple checkboxes and based on selection count should be displayed. could help me with macro code for same
This comment was minimized by the moderator on the site
Hello, Rohit,

May be the following article can help you, please view it.
https://www.extendoffice.com/documents/excel/2460-excel-sum-count-checkboxes.html

Hope it can help you!
This comment was minimized by the moderator on the site
Hello and thank you for the tips above. Note that in your Sub, you must declare the variable xTitleId with Dim xTitleId as String.. otherwise the routine will produce an error, assuming the user has VBA set with Option Explicit. The Dim above solves the problem and the Sub works perfectly thereafter. Thanks for the great advice and information.
This comment was minimized by the moderator on the site
Great macro, gracefully written!!! Thank you!
This comment was minimized by the moderator on the site
I just purchased the program. When I insert the checkboxes, they are slightly lower than the cell itself, so they are encroaching into the cell below. How can I reposition each of those cells?
This comment was minimized by the moderator on the site
Hye there. im new here n new for using excel.can i know how to put other excel sheet under one excel sheet. example when i open 1 excel sheet and i got my audit plan. Then i got list of country overall such as Canada and Belgium. So what i wan to know how if i click Canada and my audit plan for Canada will appear.
This comment was minimized by the moderator on the site
Why is my name in this list? I did not take this class.
This comment was minimized by the moderator on the site
Hi Just followed your code to create a list of checkboxes on my spreadsheet, I am very new to this but have managed to follow it and worked perfectly. I just cant remove the checkbox labels coming up? i have a pretty long spreadsheet and deleting them individually is impossible. can i remove the labels that come up with each checkbox??? please help
This comment was minimized by the moderator on the site
Really good macro How do insert them already checked? i.e. their value is already 1? Thanks
This comment was minimized by the moderator on the site
THANK YOU!!! Great post!
This comment was minimized by the moderator on the site
Hello, this macro is a GREAT timesaver - thank you! I'm terrible with VBA, but I was trying to determine which line(s) in the code I may be able to comment to keep the range-reminder dialog from appearing. Is that possible? I'm prepping some checklists for our marketing group and entering a MILLION checkboxes (so you can imagine how much this macro helps), but I have to stop with each group/range and click on that darn dialog. Any way to disable it so I can maybe re-enable it later? Thanks for any help! -LLD
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations