跳到主要內容

如何在Excel中對多個選項/單選按鈕進行分組?

當您在工作表中插入多個單選按鈕時,您只能在工作表中選擇其中一個。 那是因為單選按鈕沒有被設計為允許多個選擇。 但是,如果要插入多組選項按鈕,並且需要從每個組中檢查一個按鈕,如下所示的屏幕截圖。 您如何在Excel中進行操作?

組單選按鈕的窗體控件 組單選按鈕的ActiveX控件
文檔插入組單選按鈕1 文檔插入組單選按鈕2

使用“組框”(表單控件)插入多組選項按鈕

插入多組選項按鈕並命名新的組名(ActiveX控件)

使用Kutools for Excel在一系列單元格中插入多個選項按鈕


如果要插入一些 表單控件 單選按鈕並將其分組,您可以繪製一些 組框 首先,然後將單選按鈕插入其中。 您可以按照以下步驟對其進行處理:

1。 去的 開發者 選項卡,然後單擊 組合箱 插入,請參見屏幕截圖:

文檔插入組單選按鈕1

2。 然後根據需要拖動並繪製一些組框,請參見屏幕截圖:

文檔插入組單選按鈕1

3。 然後,您可以通過選擇並輸入新名稱來替換組框名稱。

文檔插入組單選按鈕1

4。 然後,您可以將選項按鈕插入組框中,請單擊 開發者 > 插入 > 選項按鈕(表單控件) 並將一些單選按鈕繪製到組框中,請參見屏幕截圖:

文檔插入組單選按鈕6 -2 文檔插入組單選按鈕6

5。 將選項按鈕插入組框中後,您可以更改選項按鈕的名稱,右鍵單擊一個選項按鈕並選擇 編輯文字 從上下文菜單中,然後根據需要輸入您自己的選項名稱。 重複此步驟以手動更改所有選項按鈕。 查看屏幕截圖:

文檔插入組單選按鈕8 -2 文檔插入組單選按鈕9

並且將您在一個組框中的所有選項按鈕都視為一個組,並且可以從每個組中選擇選項按鈕。



除了Form Controls單選按鈕,Excel中還有另一種單選按鈕,它是ActiveX Controls單選按鈕,您可以按照以下教程對這種類型的單選按鈕進行分組:

1。 插入 ActiveX控件 通過單擊選項按鈕 開發者 > 插入 > 選項按鈕(ActiveX控件),請參見屏幕截圖:

文檔插入組單選按鈕9

2。 然後根據需要一一拖動選項按鈕。

文檔插入組單選按鈕9

3。 然後,您可以通過右鍵單擊來更改選項按鈕的名稱,然後選擇 OptionButton對象 > 編輯,根據需要輸入選項名稱。 重複此步驟以一個一個地更改選項按鈕的名稱,請參見屏幕截圖:

文檔插入組單選按鈕8 -2 文檔插入組單選按鈕9

4。 重命名選項按鈕後,您需要為組單選按鈕指定一個組名。 選擇第一組中的第一個單選按鈕,然後右鍵單擊它,然後單擊 氟化鈉性能 從上下文菜單。

文檔插入組單選按鈕9

5。 在 氟化鈉性能 對話框中,為 組名 財產 字母順序 選項卡,然後關閉對話框。

文檔插入組單選按鈕9

6。 現在,從第一個組中選擇第二個按鈕,然後為您在第一個按鈕中使用的GroupName輸入相同的名稱。 然後,對第一組中的所有左按鈕重複此操作。

7。 然後,您可以應用相同的操作為所有單選按鈕的第二組命名,但是必須輸入其他名稱以與第一組名稱區分開。

8。 然後退出 設計模式 通過點擊 開發者 > 設計模式,現在您的單選按鈕已按照以下屏幕截圖進行了分組:

文檔插入組單選按鈕9


如果您想在一分鐘內在一個單元格區域中插入多個單選按鈕, Excel的Kutools批量插入選項按鈕 功能可能會幫助您處理此任務。

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

如果你已經安裝 Excel的Kutools,請執行以下操作:

1。 選擇要在其中插入選項按鈕的單元格區域。

文檔插入組單選按鈕9

2。 然後點擊 酷工具 > 插入 > 批量插入選項按鈕,請參見屏幕截圖:

文檔插入組單選按鈕9

3。 然後,所選單元格已填充選項按鈕,請參見屏幕截圖:

文檔插入組單選按鈕9

注意:您也可以在顯示以下屏幕快照的相同單元格中的值之前插入單選按鈕:

文檔插入組單選按鈕9

單擊以了解有關此“批量插入選項按鈕”實用程序的更多信息。

立即下載和免費試用Excel的Kutools!


相關文章:

如何在Excel中插入單選按鈕或選項按鈕?

如何在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 (10)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
This is really helpful. Thanks for posting this.
This comment was minimized by the moderator on the site
Thank you, so useful explenation
This comment was minimized by the moderator on the site
Super explanation on grouping ActiveX controls. However, what is missing is how to assign code to those grouped option buttons. I have 5 ActiveX radio button inside a Microsoft Frame, and I've Googled till I'm Green as the Grinch and cannot figure out how to assign code to each of those ActiveX buttons.

Any help much appreciate - code or link.
Happy Holidays!
This comment was minimized by the moderator on the site
how do you output the check box
options in one cell as combined text?
This comment was minimized by the moderator on the site
Is it possible to remove the group box line so it doesn't show on the form?
This comment was minimized by the moderator on the site
Hello, Shawn,
If you want to hide or remove the group box, the following article may do you a favor, please view it.
https://www.extendoffice.com/documents/excel/3622-excel-remove-border-from-group-box.html

Hope it can help you, thank you!
This comment was minimized by the moderator on the site
Really helpful - so obvious when it's pointed out: way better than the MS website :)
This comment was minimized by the moderator on the site
If you do a questionnaire with Option Buttons it gets all jittery and shaky when you scroll through the sheet. Picking the option to "Don't move or resize..." is useless. Any suggestions?
This comment was minimized by the moderator on the site
Hi, I was struggling with categorizing the toggle buttons and your page helped me figure out the "Grouping". Thank you!!
This comment was minimized by the moderator on the site
This great, just what i was looking for. Thanks!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations