Hoppa till huvudinnehåll

Hur infogar jag snabbt flera kryssrutor i Excel?

Hur kan vi snabbt infoga flera kryssrutor i Excel? Följ dessa knepiga metoder i Excel:

Infoga flera kryssrutor med Fill Handle

Infoga flera kryssrutor med VBA-kod

Infoga och ta bort flera kryssrutor med ett klick genom att använda Kutools för Excel


pil blå höger bubbla Infoga flera kryssrutor med Fill Handle

I Excel är Fill Handle en kraftfull funktion för att göra många saker. Den kan också fylla i kryssrutorna. Först måste du infoga en kryssruta. Gör enligt följande:

1. Klicka Utvecklare i menyraden och klicka sedan på Insertoch välj kryssrutans bild under Formkontroll. Se skärmdump:

doc-infoga-flera-kryssrutor 1

2. Klicka på kryssrutans bild så visas plusteckenpekaren, klicka där du vill lägga till kryssrutan.

doc-infoga-flera-kryssrutor 2

3. Markera kryssrutan och flytta den till en cell och radera sedan kryssrutans namn.

4. Markera sedan cellen där kryssrutan finns. Dra sedan fyllningshandtaget över det cellområde som du vill fylla. Se skärmdump:

doc-infoga-flera-kryssrutor 3


Infoga flera kryssrutor i markeringar med ett klick:

Kutools för Excel's Kryssrutor för satsinsats verktyget kan hjälpa dig att snabbt infoga flera kryssrutor samtidigt. Klicka för att ladda ner gratis den här funktionen.

doc infoga flera kryssrutor 10

Kutools för Excel: med mer än 300 praktiska Excel-tillägg, gratis att prova utan begränsning på 30 dagar. Ladda ner och testa gratis nu!


pil blå höger bubbla Infoga flera kryssrutor med VBA-kod

Om du tycker att den första metoden är något besvärlig kan följande VBA-kod hjälpa dig att enkelt och snabbt infoga flera kryssrutor.

1. Klicka Utvecklare > Visual Basic, en ny Microsoft Visual Basic för applikationer fönstret visas, klicka Insert > Modulernaoch mata in följande kod i Modulerna:

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. Klicka sedan doc-multiplicera-beräkning-3 för att köra koden. Och en snabbruta dyker upp för att påminna dig om att välja ett cellområde som du vill infoga kryssrutorna. Se skärmdump:

doc-infoga-flera-kryssrutor 4

3. Och klicka sedan på OK, kryssrutorna har satts in i området snyggt och vackert. Se skärmdump:

doc-infoga-flera-kryssrutor 5


pil blå höger bubbla Infoga flera kryssrutor med Kutools för Excel

Här kan jag presentera dig för ett enkelt och praktiskt sätt att infoga flera kryssrutor-Kutools för Excel, med dess Kryssruta för batchinsats kan du infoga kryssrutorna i tomma celler eller celler med data.

Kutools för Excel : med mer än 300 praktiska Excel-tillägg, gratis att prova utan begränsning på 30 dagar.

När du har installerat Kutools för Excel, gör med följande steg:

1. Markera ett cellområde som du vill infoga kryssrutorna.

2. Klicka Kutools > Insert > Kryssrutor för satsinsats, se skärmdump:

doc-infoga-flera-kryssrutor 06

3. Då har dina valda celler fyllts med kryssrutorna enligt följande skärmdumpar:

Infoga kryssrutor i tomma celler Infoga kryssrutor i dataceller
doc-infoga-flera-kryssrutor 7 doc-infoga-flera-kryssrutor 8

Tips. Om du snabbt vill ta bort flera kryssrutor, försök att använda Kutools för ExcelÄr Ta bort kryssrutor som visas i följande skärmdump. Det är full funktion utan begränsning på 60 dagar, vänligen ladda ner och få en gratis provperiod nu.

doc-infoga-flera-kryssrutor 9

Kutools för Excel: med mer än 300 praktiska Excel-tillägg, gratis att prova utan begränsning på 30 dagar. Ladda ner och testa gratis nu!


pil blå höger bubbla Infoga och ta bort flera kryssrutor med Kutools för Excel

Kutools för Excel: med mer än 300 praktiska Excel-tillägg, gratis att prova utan begränsning på 30 dagar. Ladda ner och testa gratis nu!

Relaterade Artikel:

Hur tar jag snabbt bort flera kryssrutor i Excel?

Bästa kontorsproduktivitetsverktyg

🤖 Kutools AI Aide: Revolutionera dataanalys baserat på: Intelligent utförande   |  Generera kod  |  Skapa anpassade formler  |  Analysera data och generera diagram  |  Anropa Kutools funktioner.
Populära funktioner: Hitta, markera eller identifiera dubbletter   |  Ta bort tomma rader   |  Kombinera kolumner eller celler utan att förlora data   |   Rund utan formel ...
Superuppslag: Flera kriterier VLookup    VLookup med flera värden  |   VSök över flera ark   |   Fuzzy Lookup ....
Avancerad rullgardinslista: Skapa snabbt en rullgardinslista   |  Beroende rullgardinslista   |  Flervals-rullgardinslista ....
Kolumnhanterare: Lägg till ett specifikt antal kolumner  |  Flytta kolumner  |  Växla synlighetsstatus för dolda kolumner  |  Jämför intervall och kolumner ...
Utvalda funktioner: Rutnätsfokus   |  Designvy   |   Stor formelbar    Arbetsbok & Bladhanterare   |  Resursbibliotek (Automatisk text)   |  Datumväljare   |  Kombinera arbetsblad   |  Kryptera/Dekryptera celler    Skicka e-postmeddelanden efter lista   |  Superfilter   |   Specialfilter (filtrera fet/kursiv/genomstruken...) ...
Topp 15 verktygssatser12 text verktyg (lägga till text, Ta bort tecken, ...)   |   50+ Diagram Typer (Gantt Chart, ...)   |   40+ Praktiskt Formler (Beräkna ålder baserat på födelsedag, ...)   |   19 Införande verktyg (Infoga QR-kod, Infoga bild från sökväg, ...)   |   12 Konvertering verktyg (Siffror till ord, Valutaväxling, ...)   |   7 Slå ihop och dela verktyg (Avancerade kombinera rader, Dela celler, ...)   |   ... och mer

Uppgradera dina Excel-färdigheter med Kutools för Excel och upplev effektivitet som aldrig förr. Kutools för Excel erbjuder över 300 avancerade funktioner för att öka produktiviteten och spara tid.  Klicka här för att få den funktion du behöver mest...

Beskrivning


Fliken Office ger ett flikgränssnitt till Office och gör ditt arbete mycket enklare

  • Aktivera flikredigering och läsning i Word, Excel, PowerPoint, Publisher, Access, Visio och Project.
  • Öppna och skapa flera dokument i nya flikar i samma fönster, snarare än i nya fönster.
  • Ökar din produktivitet med 50 % och minskar hundratals musklick för dig varje dag!
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