Check and uncheck all in-cell checkboxes in one click

Поделиться
HTML-код
  • Опубликовано: 6 сен 2024
  • How to create in-cell checkbox in Excel?
    How to check all checkboxes in one click?
    How to uncheck or reset all checkboxes in one click?
    Any differences between the checkboxes under Form Controls and ActiveX Controls?
    Excel & VBA discussion public group 👉 / 486402069483674
    Welcome to join and feel free to raise/ask questions (if any) or share Excel tricks 🤗
    #excel #vba

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

  • @2blue4black
    @2blue4black 2 месяца назад +1

    Thank you so much. I learned it from you and it works for my file.

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

      My pleasure. Glad it helped. Thanks for watching. Wishing you a wonderful day.

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

    Can checkboz apply vba code I want to one check box when I click 3 specific name check box auto tick how I do this task

    • @ahsing_excel_VBA
      @ahsing_excel_VBA  3 месяца назад +1

      Hi. Yes, use the checkbox under ActiveX Controls. Then, while the 'Design Mode' is on, double-click on the checkbox and use an 'If' statement to set the condition to check the three checkboxes. Hope this helps. Thanks for watching, and have a nice day.

  • @user-ss8gl7ht6d
    @user-ss8gl7ht6d Год назад

    How about single button can check/unchecked checkbox, please notice me master

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

      Hi. Sorry for late reply. I didn't notice your message as it is marked as "likely spam" and review is required.
      Not sure if you still need it.
      To check or uncheck by using single button, we need an indicator such as the caption of the command button, it is something like ruclips.net/video/Lx5F07z1Xd8/видео.html at around time 2:30.
      Hope it helps. Thanks for watching and have a nice day.

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

    Hello,
    What if we had multiple columns in one sheet that had check boxes and we only wanted to reset one specific column at a time?

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

      Hello. We can try one of the following:
      1. Insert a checkbox/command button beneath (or above) each column and link it to the checkboxes in the same column.
      2. Use a condition to check the left position of the column, then reset the checkboxes where the left position is less than it but not greater than the left position of the next column.
      Hope these help. Thanks for watching and have a nice day.

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

      @@ahsing_excel_VBAhi, still can’t do it. Is it possible to link a video that can best accurately show? Thanks 😅

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

      Apologies for the delayed response. Replies under comments that I've already answered don't show up in RUclips Studio, so I only noticed your question when I visited the RUclips homepage. I'm not sure if you still need assistance, but here's a video addressing your inquiry: ruclips.net/video/J71XKJpQ-B0/видео.html. I hope this provides the solution you were looking for.
      Thanks for watching and have a nice day.

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

    Kindly share the code here.

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

      Here you go.
      To check all checkboxes:
      For Each cb In Sheet1.CheckBoxes
      cb.Value = xlOn
      Next
      For Each obj In Sheet1.OLEObjects
      If InStr(1, obj.Name, "Check") > 0 Then
      obj.Object.Value = True
      End If
      Next
      Kindly refer to the video and amend the code for "uncheck".
      Thanks for watching and have a nice day.

  • @mazenzagha8811
    @mazenzagha8811 9 месяцев назад

    Dear sir
    Thanks for this video
    Sir could you please help me 🙏
    Sir i need to save and print the form it self on one page only
    Sir i try many times and i can't
    Sir what is the codes for this
    If you have vidio or link pls provided
    Thanks again

    • @ahsing_excel_VBA
      @ahsing_excel_VBA  9 месяцев назад

      Hi. Do you mean something like this 👉 ruclips.net/video/oSD-X30nxmg/видео.html
      Hope it helps.
      Thanks for watching and have a nice day.

    • @mazenzagha8811
      @mazenzagha8811 9 месяцев назад

      @@ahsing_excel_VBA thanks again for replying, but i need to save a form or printing the form it self as pdf not a sheet sir
      H
      Thanks for your help

    • @ahsing_excel_VBA
      @ahsing_excel_VBA  9 месяцев назад

      Hi. The "form" here refers to UserForm?

    • @mazenzagha8811
      @mazenzagha8811 9 месяцев назад

      @@ahsing_excel_VBA yes sir , how to print it as pdf.thanks for your cooperation

    • @ahsing_excel_VBA
      @ahsing_excel_VBA  9 месяцев назад

      I see. Unfortunately, we can't directly print or save a UserForm as a PDF file. However, a workaround is to use VBA to capture a screenshot of the UserForm, paste it onto a worksheet, and then print or save the worksheet as a PDF. This should achieve the desired result.