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

Поделиться
HTML-код
  • Опубликовано: 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 RUclips 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:
    ***********************************************
    💎RUclips: / 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!

Комментарии • 86

  • @Ejmillanv
    @Ejmillanv 3 месяца назад +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

  • @yogeshkhandagale7664
    @yogeshkhandagale7664 7 месяцев назад +5

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

  • @OmarElsayadx
    @OmarElsayadx Год назад +11

    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

  • @genes7154
    @genes7154 5 месяцев назад

    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 Месяц назад

    Finally one that works, you're a hero.

  • @Mynameisrex72
    @Mynameisrex72 8 месяцев назад +1

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

    • @dptutorials
      @dptutorials  8 месяцев назад

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

  • @DanielGabani
    @DanielGabani 2 месяца назад

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

  • @ahmedabdulkadir6298
    @ahmedabdulkadir6298 5 месяцев назад

    Thank you, this was helpful

  • @mrmarnissi
    @mrmarnissi 2 года назад

    Very Helpful big thanks you are genius

  •  5 месяцев назад

    wonderful, thanks so much!

  • @eigj999
    @eigj999 2 месяца назад

    Great! Thank u very much!

  • @abdulhamidhilwany
    @abdulhamidhilwany Год назад

    thank you so much you save my time

  • @maxkaiser5438
    @maxkaiser5438 Год назад +1

    Thank you so much! Helped me perfectly :)

    • @dptutorials
      @dptutorials  Год назад +1

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

  • @IndraEighty-Six
    @IndraEighty-Six Месяц назад

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

  • @Kostka74
    @Kostka74 3 месяца назад

    The best!

  • @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.

  • @thaisaguiar9445
    @thaisaguiar9445 Год назад

    Thank you :)

  • @rafaeldeconde8148
    @rafaeldeconde8148 Год назад

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

  • @radomircvijetic3334
    @radomircvijetic3334 Год назад +1

    Thanks a lot, works perfectly!!!!

  • @brutalbliss
    @brutalbliss Год назад +1

    Thank you for this!

  • @ramram5815
    @ramram5815 2 года назад +1

    thanks you so much for sharing this trick

  • @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.

  • @FuzzyWuzzaBer
    @FuzzyWuzzaBer 3 месяца назад

    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?

  • @syaaackzint
    @syaaackzint 4 месяца назад

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

  • @aponijuanzosimo9923
    @aponijuanzosimo9923 6 месяцев назад

    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.

  • @user-ne9dh3wm6x
    @user-ne9dh3wm6x 11 месяцев назад

    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?

  • @MamoonaMohsin
    @MamoonaMohsin Год назад +1

    life saver , thanks allot

  • @simpleshortpractice
    @simpleshortpractice Год назад +1

    helpfull, thank you love love

  • @shamsshams9762
    @shamsshams9762 Год назад +1

    Thank you so much 😀

  • @JoelMendoza-sq1kk
    @JoelMendoza-sq1kk 4 месяца назад

    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?

  • @fajarmahendra7732
    @fajarmahendra7732 6 месяцев назад

    GG excel Mr 😊

  • @irjacq27
    @irjacq27 5 месяцев назад

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

  • @technicalknowledge9128
    @technicalknowledge9128 Месяц назад

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

  • @threciabarazan2998
    @threciabarazan2998 Год назад

    Thank you 😊

  • @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

  • @martinofficial2707
    @martinofficial2707 4 месяца назад

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

  • @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?

  • @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?

  • @victoralvarado3291
    @victoralvarado3291 6 месяцев назад

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

  • @user-ne9dh3wm6x
    @user-ne9dh3wm6x 11 месяцев назад

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

  • @KrishnaAgarwal-vt2lh
    @KrishnaAgarwal-vt2lh Месяц назад

    Similarly can you show how to unlink all check boxes

  • @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?

  • @maheshk7133
    @maheshk7133 10 месяцев назад +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 3 месяца назад

      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

  • @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!!!!!!

  • @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

  • @abdulhamidhilwany
    @abdulhamidhilwany Год назад

    i hope you are fine

  • @Kariboo925
    @Kariboo925 Год назад

    you are smarter than chatgpt !

  • @Planemech
    @Planemech 7 месяцев назад

    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 7 месяцев назад

      ​ @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.

  • @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!

  • @armandoanley4740
    @armandoanley4740 11 месяцев назад

    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 7 месяцев назад

      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.

  • @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 7 месяцев назад

      ​@@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.