Shortcut To Link All Check Boxes To Cells With A Macro In Excel || Excel Tricks

Поділитися
Вставка
  • Опубліковано 4 лис 2021
  • In this tutorial, let us learn about a shortcut to link all check boxes to cells with a macro in Excel.
    You might have already seen that we can use check boxes on a worksheet, and link the results to a cell.
    If the checkbox is checked, the cell shows TRUE, and if it’s not checked, the cell shows FALSE
    So this is my sample to do task list and I would like to show the status of each task by using the checkbox.
    First , let us see how to create this checkbox and link them to a cell. Let us do for the 1st cell in column F.
    💥 DON'T CLICK THIS: ➡️ bit.ly/3sPIZvD
    👉 Link to download the exercise file: ➡️ bit.ly/3acSSuT
    👉 VBA Code:
    Sub LinkCheckBoxes()
    Dim chk As CheckBox
    Dim lCol As Long
    lCol = 3 'number of columns to the right of checkbox
    For Each chk In ActiveSheet.CheckBoxes
    With chk
    .LinkedCell = _
    .TopLeftCell.Offset(0, lCol).Address
    End With
    Next chk
    End Sub
    ▶️Best Equipment & Tools for UA-cam Channel : ➡️ bit.ly/3inKa1P
    📒Our Recommendations
    ***************************************************************
    📗Oracle Primavera Tutorials : bit.ly/3fn9PFH
    📗Microsoft Excel Tutorials : bit.ly/2V5de5l
    📗Microsoft Project Tutorials : bit.ly/37guNl7
    For personalized detail learning, write to 📥 info@dptutorials.com
    If you found this video valuable, give it a like. If you know someone who needs to see it, share it. Leave a comment below with your thoughts. Add it to a playlist if you want to watch it later.
    ***********************************************
    ★ My Online Tutorials ► www.dptutorials.com
    ⚡️LEARNING RESOURCES I Recommend: www.dptutorials.com/resources
    ⚡️Subscribe for more Awesome Tutorials: goo.gl/NyAtg2
    ⚡️Support the Channel via shopping: amzn.to/2ZRfTOZ ift.tt/2jH38PR
    ⚡️You Can Connect with Me at:
    ***********************************************
    💎UA-cam: / dptutorials
    💎Instagram: / dptutorials
    💎G+: ift.tt/2kAOpa6
    💎Twitter: / dptutorials15
    💎Facebook: ift.tt/2kfRnDi
    💎BlogSpot: ift.tt/2kB14dh
    💎Websites: www.dptutorials.com &
    💎www.askplanner.blogspot.com
    💎Telegram: t.me/dptutorials16
    #dptutorials #excelcheckboxes #exceltraining #exceltricks #exceltips #excelfreetraining #excelfreelearning
    ⚡️Tags: -
    excel formulas in english, excel in english, excel tutorial in english,ms excel in english,ms excel tutorial in english, learn excel in english,vlookup in excel in english, learn ms excel in english, excel training, excel tutorial, microsoft excel 2007, learn excel,tutorial excel, ms excel tutorial, excel tutorials,ms excel 2007,microsoft excel training,learn excel online,learning excel,free excel training,online excel training,advanced excel tutorial,excel tutorial, excel formulas and functions, excel formulas, excel tutorial in hindi, excel formulas and functions in hindi, excel tricks, excel in hindi, excel shortcut keys, excel vlookup, excel formulas in hindi, excel for beginners, excel for accounting, excel formulas and functions tutorial, excel sum formula, sum formula series, excel attendance sheet, excel salary sheet, excel stock maintain, excel data entry, advanced excel tutorial,excel formulas,excel tutorial,vlookup excel,excel accounting,excel for beginners,excel shortcut keys,excel sum formula,excel training,excel training online,excel tricks,free excel training,learn excel,learn excel online,microsoft excel
    🎁Note: This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!

КОМЕНТАРІ • 88

  • @jasonp220
    @jasonp220 День тому

    Thank you! Works perfectly even over a large grid of check boxes.

  • @Darthpeegs1039
    @Darthpeegs1039 17 днів тому

    Amazing. Seriously, this video genuinely saved me hours upon hours of manual labor on a very long worksheet. Appreciate the time you took to make this, thank you so much!!!

  • @yogeshkhandagale7664
    @yogeshkhandagale7664 8 місяців тому +6

    No drama, and no too ,much of talking. Simple and very clear explanation. Thanks a lot. Please keep it up.

  • @OmarElsayadx
    @OmarElsayadx Рік тому +12

    This video saved me HOURS and HOURS of extreme work I would have done on a very long excel sheet. you're a life saver

  • @Ejmillanv
    @Ejmillanv 4 місяці тому +1

    I had this massive checklist and I was afraid I had to assign every single box manually, this video literally saved me A HELL OF A LOT OF TIME and my sanity

  • @genes7154
    @genes7154 6 місяців тому

    This probably saved me at least a good hour of work and boredom. Linked 160 checkboxes all at once. Still have at least 160 more to go. Created the module, copied and pasted the macro into the module, and ran it. Worked perfectly without a hitch! Thank you! 😄

  • @harmenvanheist7348
    @harmenvanheist7348 2 місяці тому

    Finally one that works, you're a hero.

  • @Mynameisrex72
    @Mynameisrex72 9 місяців тому +1

    You are a GENIUS !!!!!!!!!!!!!!!!!!!!
    Thanks for your help - I saved hours and hours of boring work

    • @dptutorials
      @dptutorials  9 місяців тому

      Glad I could help. It's motivating for me too

  • @ahmedabdulkadir6298
    @ahmedabdulkadir6298 6 місяців тому +1

    Thank you, this was helpful

  • @mrmarnissi
    @mrmarnissi 2 роки тому

    Very Helpful big thanks you are genius

  • @rowelmagbanua9634
    @rowelmagbanua9634 2 роки тому +1

    It really helps a lot. What if I have multiple checkbox in each column? How can I add it in VBA code command? is it lcol = 3,4,5 and so on? Thanks for response.

  • @maxkaiser5438
    @maxkaiser5438 2 роки тому +1

    Thank you so much! Helped me perfectly :)

    • @dptutorials
      @dptutorials  2 роки тому +1

      Welcome. Please subscribe and raise questions if you have any.

  •  6 місяців тому

    wonderful, thanks so much!

  • @rafaeldeconde8148
    @rafaeldeconde8148 Рік тому

    Thank you very much!! Ths video is extremely helpful!!!

  • @radomircvijetic3334
    @radomircvijetic3334 Рік тому +1

    Thanks a lot, works perfectly!!!!

  • @DanielGabani
    @DanielGabani 3 місяці тому

    Great video! Thank you very much! Gonna speed up my task by 10x at minimum :D

  • @user-dz9eb7fu2f
    @user-dz9eb7fu2f 2 роки тому +1

    this was a lifesaver omfg thank you so much

    • @dptutorials
      @dptutorials  2 роки тому

      Most welcome, please subscribe for more videos.

  • @IndraEighty-Six
    @IndraEighty-Six Місяць тому

    Thank you so much!!! You’re a lifesaver 🙏🏾

  • @abdulhamidhilwany
    @abdulhamidhilwany Рік тому

    thank you so much you save my time

  • @eigj999
    @eigj999 3 місяці тому

    Great! Thank u very much!

  • @brutalbliss
    @brutalbliss Рік тому +1

    Thank you for this!

  • @FuzzyWuzzaBer
    @FuzzyWuzzaBer 4 місяці тому

    Very informative video! Thank you! Just a question. What if I wanted to COUNT the checked boxes and have the sum value represented in a given cell as I check them?

  • @thaisaguiar9445
    @thaisaguiar9445 Рік тому

    Thank you :)

  • @ramram5815
    @ramram5815 2 роки тому +1

    thanks you so much for sharing this trick

  • @simpleshortpractice
    @simpleshortpractice Рік тому +1

    helpfull, thank you love love

  • @shamsshams9762
    @shamsshams9762 Рік тому +1

    Thank you so much 😀

  • @Kostka74
    @Kostka74 3 місяці тому

    The best!

  • @MamoonaMohsin
    @MamoonaMohsin Рік тому +1

    life saver , thanks allot

  • @threciabarazan2998
    @threciabarazan2998 Рік тому

    Thank you 😊

  • @MountainDewBots
    @MountainDewBots Рік тому +2

    This tutorial was an absolute savior, I searched for hours for someone to explain an easier method to effecting a large quantity of check boxes without having to manually change each linked cell (working with 200 check boxes) The only issue I ran into was the original check box liked to change the linked cell 1 up and 1 over. Not only that but now for whatever reason if a single check box is selected it updates ALL the check boxes, so if I am using these boxes for the sake of taking time stamps it can completely and quickly destroy the intended data its meant to capture. Could it be that I am attempting to stretch this over too many check boxes and that is what is causing this error?

  • @user-ne9dh3wm6x
    @user-ne9dh3wm6x Рік тому

    can I also drag the checkboxes cells to the right or left, run the macro, and expect to have the linkedcell with true and falls on columns J or L?

  • @aponijuanzosimo9923
    @aponijuanzosimo9923 7 місяців тому

    Hi @dptutorials, is this possible to add scrollbar? coz I want to add scrollbar so that the data will not looks like huge upon viewing.

  • @fajarmahendra7732
    @fajarmahendra7732 7 місяців тому

    GG excel Mr 😊

  • @syaaackzint
    @syaaackzint 5 місяців тому

    The function of TopLeftCell, can we change to the cell that the checkbox placed?

  • @JoelMendoza-sq1kk
    @JoelMendoza-sq1kk 5 місяців тому

    I would like to ask, does this function if I want multiple columns of check boxes and each one references the cell its on top of?

  • @user-ne9dh3wm6x
    @user-ne9dh3wm6x Рік тому

    is there a way to check or uncheck all checkboxes at once?

  • @rajeevgosavi4514
    @rajeevgosavi4514 5 місяців тому

    Thanks for your simple to understand VBA code. However when I applied this macro to my office sheet , even the heading " Done" is also changing from true to false , as I have applied this macro in zero column i.e . same as checkboxes

  • @victoralvarado3291
    @victoralvarado3291 6 місяців тому

    So how would I link it to a cell that is to the left of the checkbox?

  • @charliek9394
    @charliek9394 2 роки тому

    IF you want to do this for activeX checkmarks in a single column and have them linked to cells in another sheet, is that possible?

  • @irjacq27
    @irjacq27 5 місяців тому

    What is the macro if I want to link the checkbox in column F6 onwards?

  • @85MA
    @85MA 9 місяців тому

    I have a worksheet with the following data,,, vendors name in Column A2 , Paymnt Amount in Column B2. Check-boxes in Column C2, Paid/Unpaid text in Column D2.
    I would like to establish a link between check-boxes and the 'amount' column. Specifically, I want the checkbox in column C2 to be automatically checked when I enter an amount in cell B2. Additionally, when the checkbox is automatically marked as checked, I would like the text 'Paid' to appear in column D2. Is it possible to achieve this using a formula or VBA/Macro?

  • @KrishnaAgarwal-vt2lh
    @KrishnaAgarwal-vt2lh 2 місяці тому

    Similarly can you show how to unlink all check boxes

  • @martinofficial2707
    @martinofficial2707 4 місяці тому

    How to change the checkbox linked value as YES/NO.

  • @technicalknowledge9128
    @technicalknowledge9128 2 місяці тому

    Suppose I have 3 check box I want to one check box click and automatically 2 check box select how to connect vba code

  • @dilukshanuka1333
    @dilukshanuka1333 2 роки тому +1

    what's the code for linked to same cell?
    Thanks

    • @George-wb2qf
      @George-wb2qf 2 роки тому +1

      just use lcol=0 instead of 3

  • @markernc
    @markernc 2 роки тому +4

    When I tried this it was selecting the cell right above the one I was trying to link...where did I go wrong? Thank you!

    • @actuallyjess1107
      @actuallyjess1107 2 роки тому

      I'm having this same issue!

    • @caseym8177
      @caseym8177 Рік тому

      I had this same issue. The table I was working with had column headers so I deleted them and had my data starting from row 1. Running the macro from there linked the checkboxes correctly. There's probably a better way to fix this but this worked for me

    • @Marcvids41
      @Marcvids41 Рік тому +7

      You need to change the "0" to 1(or were your row starts) before ICol.
      Sub LinkCheckBoxes()
      Dim chk As CheckBox
      Dim lCol As Long
      lCol = 3 'number of columns to the right of checkbox
      For Each chk In ActiveSheet.CheckBoxes
      With chk
      .LinkedCell = _
      .TopLeftCell.Offset(1, lCol).Address
      End With
      Next chk
      End Sub

    • @palermo017
      @palermo017 Рік тому

      @@Marcvids41 thabks a lot bro!!!!!!

  • @maheshk7133
    @maheshk7133 11 місяців тому +1

    sir when I click on check box , false and true will appear on the upper cell , it has to be linked with same row

    • @Ejmillanv
      @Ejmillanv 4 місяці тому

      I had the same problem but turns out it's very easy to figure out, you know the line with "(0, lcol)" well 0 is basically the A1 cell and my checkboxes started in the A2 SO what I did what replace the 0 with a 1 and now everything is lined up, I know this is 7 months late but probably someone else had the same question

  • @abdulhamidhilwany
    @abdulhamidhilwany Рік тому

    i hope you are fine

  • @Kariboo925
    @Kariboo925 Рік тому

    you are smarter than chatgpt !

  • @Planemech
    @Planemech 8 місяців тому

    I ran the Macro and it didn't line up with the checkbox, it was up one cell. I tried several times and got the same result

    • @BlakeBiellier
      @BlakeBiellier 8 місяців тому

      ​ @broland80917 You need to make sure your first checkbox border (The one that is to resize with the name) does not overlap into other cells. Also, You need to make sure no duplicate boxes are hidden behind the first check box you create before copying them to other cells. Plus, make sure none are currently linked before running the macro.

  • @layalkazouh1817
    @layalkazouh1817 Рік тому

    At 2:52 I was lost

  • @user-qx9tk6sv5s
    @user-qx9tk6sv5s Рік тому

    doesn't work.

  • @armandoanley4740
    @armandoanley4740 Рік тому

    No help at all. I'm not a VB user, I work this deep with excel quite occasionally, there should be an easier way to do it without using VB. Sad Microsoft doesn't come up with it.

    • @BlakeBiellier
      @BlakeBiellier 8 місяців тому

      Unfortunately, there is no other other way. Other then a few other different macro codes that essentially do the same thing. Just written slightly different.

  • @PiliPala99
    @PiliPala99 2 роки тому

    Half of it is great, but you don't explain the references enough to make it useful on another spreadsheet. At least not simple enough tjhat I can understand. The TopLeft.Offset etc... if you explained why you did that I could figure out how to make it work on my sheet. Excel is so dam infuriating!

  • @carajatagrawal
    @carajatagrawal Рік тому +1

    Error 438, when i click debug,
    "[.LinkedCell=_ .TopLeftCell.Offset(0,lcol).Adress]" is highlighted. Please Help

    • @david_pgd
      @david_pgd Рік тому

      I had the same error, see if your problem is that you had written
      .LinkCell = _ instead of .LinkedCell = _

    • @carajatagrawal
      @carajatagrawal Рік тому

      @@david_pgd my problem was solved when I adjusted 0 according to the starting column number.

    • @RoRo7051.
      @RoRo7051. Рік тому

      @@carajatagrawal I still couldn't get it to work. Sam error 438. Ugh

    • @carajatagrawal
      @carajatagrawal Рік тому

      @@RoRo7051. try chatgpt. It gave me the exact code.

    • @BlakeBiellier
      @BlakeBiellier 8 місяців тому

      ​@@RoRo7051. You need to make sure your first checkbox border (The one that is to resize with the name) does not overlap into other cells. Also, You need to make sure no duplicate boxes are hidden behind the first check box you create before copying them to other cells. Plus, make sure none are currently linked before running the macro.