跳到主要內容

如何在Excel中快速插入多個複選框?

如何在Excel中快速插入多個複選框? 請在Excel中遵循以下棘手的方法:

使用填充手柄插入多個複選框

使用VBA代碼插入多個複選框

使用Kutools for Excel一鍵插入和刪除多個複選框


箭頭藍色右氣泡 使用填充手柄插入多個複選框

在Excel中,Fill Handle是執行許多事情的強大功能。 它也可以填充複選框。 首先,您必須插入一個複選框。 進行如下操作:

1。 點擊 開發者 在菜單欄中,然後單擊 插入,然後選擇下面的複選框圖像 表格控制。 看截圖:

文檔插入多個複選框1

2。 單擊複選框圖像,您將看到加號指針,單擊要添加複​​選框的位置。

文檔插入多個複選框2

3。 選中該複選框並將其移動到單元格,然後刪除該複選框的名稱。

4。 然後選擇複選框所在的單元格。然後將填充手柄拖到要填充的單元格範圍內。 看截圖:

文檔插入多個複選框3


一鍵插入多個複選框:

Excel的Kutools's 批量插入複選框 實用程序可幫助您一次快速插入多個複選框。 單擊以免費下載此功能。

doc插入多個複選框10

Excel的Kutools:具有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插入多個複選框

在這裡,我可以向您介紹一種輕鬆便捷的方式來插入多個複選框,Excel的Kutools,其 批量插入複選框 功能,您可以將復選框插入空白單元格或包含數據的單元格。

Excel的Kutools : 帶有300多個便捷的Excel加載項,可以在30天內免費試用.

安裝後 Excel的Kutools,請執行以下步驟:

1。 選擇要插入複選框的單元格範圍。

2。 點擊 庫工具 > 插入 > 批量插入複選框,請參見屏幕截圖:

文檔插入多個複選框06

3。 然後,您選擇的單元格已被複選框填充,如以下屏幕截圖所示:

將復選框插入空白單元格 將復選框插入數據單元格
文檔插入多個複選框7 文檔插入多個複選框8

提示。 如果您想快速刪除多個複選框,請嘗試使用 Excel的Kutools刪除複選框 如以下屏幕截圖所示。 它在60天內無限制地提供完整功能, 請下載並立即免費試用.

文檔插入多個複選框9

Excel的Kutools:具有300多個方便的Excel加載項,可以在30天內免費試用,沒有任何限制。 立即下載並免費試用!


箭頭藍色右氣泡 使用Kutools for Excel插入和刪除多個複選框

Excel的Kutools:具有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選項卡為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