+ Reply to Thread
Results 1 to 10 of 10

Excel freezes when too many checkboxes have been created and linked to individual cells.

  1. #1
    Registered User
    Join Date
    06-02-2023
    Location
    G?teborg, Sweden
    MS-Off Ver
    Office 365
    Posts
    3

    Excel freezes when too many checkboxes have been created and linked to individual cells.

    Hi,

    I'm trying to create a user friendly file where a supervisor can follow up and check how the department managers reporting to him are fulfilling their basic tasks on a weekly basis.
    For this I created a table with each department on a row repeated every week and the columns represent the different weekly tasks.
    In each cell, there's a checkbox linked to another cell outside the table and a Countif-formula in the cell containing the checkbox.
    When creating new rows for the next weeks and checkboxes, I select the cell and drag it down/to the side. The problem here is that all the new checkboxes are linked to the same cell as the original checkbox, so I used the macro below in order to link other cells to the new checkboxes (found this code through the power of Google).

    Please Login or Register  to view this content.
    My issue is that the more rows I add the longer it takes for Excel to create them, and it takes longer for the macro to run each time. And when I've created 100+ rows, Excel is loading(for a long time or completely freezes for a couple of hours) whenever I check/uncheck the boxes for the latest week but not the first weeks.

    My goal is to create a User friendly file in which the supervisor can plot different charts and measure #tasks fulfilled over time between the managers, specific tasks fulfilled over time etc.

    If you can help me or have a suggestion of a better way to do this it'd be very much appreciated.
    Attached Files Attached Files
    Last edited by AliGW; 09-01-2023 at 03:29 AM. Reason: Thead moved to the VBA section.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,114

    Re: Excel freezes when too many checkboxes have been created and linked to individual cell

    A nightmare!!

    Why not have a Userform where Dept and Week - both drop-down lists - can be entered, together with the task list [could be checkboxes on the Userform] to be "ticked" , and the results (raw data) are put into a simple table.

    Who enters the data - the Supervisor ?
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    06-02-2023
    Location
    G?teborg, Sweden
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Excel freezes when too many checkboxes have been created and linked to individual cell

    That would've been a great way to solve my issue if it wasn't for the users and their limited knowledge/capability with Excel. They can basically just perform CTRL+C/V/Z/Y, Create Pivot chart and Drag/Drop commands.
    I will soon get a new assignment within the company and won't be able to help them whenever the Supervisor asks for a change in the list of tasks if we use Userform.

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Excel freezes when too many checkboxes have been created and linked to individual cell


    Quote Originally Posted by JohnTopley View Post
    A nightmare!!
    So true ‼
    As 95% of the VBA UserForms under Excel are useless, just badly reproducing what can - should - be done directly within a worksheet,
    in particular with the worst idea to use Excel as a database software, using ActiveX controls, a terrible mess in perspective …

  5. #5
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: Excel freezes when too many checkboxes have been created and linked to individual cell

    Attached solution to a similar case where the O.P. encountered limitations of checkboxes imbedded on the sheet.
    The attached is self expanding - enter data in cell 'B7' will then enable checkmarks to be placed in cells under each week/fortnight/month.
    If this approach is of interest I will put an example together using your data sheet (if parameters are stated).
    Attached Files Attached Files
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  6. #6
    Forum Expert ByteMarks's Avatar
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    3,165

    Re: Excel freezes when too many checkboxes have been created and linked to individual cell

    Here's something you could try.

    Rather than have a linked cell for each checkbox which you then have to refresh, you could instead have a common click event. When you create additional rows it will copy down the same assigned macro, but unlike the linked cell, this is what you want.

    Ticking/unticking the checkbox will add the respective 1 or 0 in the cell it sits above.

    1) Delink the cells by running your link code but with
    Please Login or Register  to view this content.
    2) In a module, add a click event handler
    Please Login or Register  to view this content.

    3) Run this code once to assign the handler to the existing checkboxes.
    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,114

    Re: Excel freezes when too many checkboxes have been created and linked to individual cell

    A VERY simple input form: see sheet "Data"

    The Departments / Tasks are named ranges so can easily be changed and allows the checkbox captions to be changed (hard-coded currently).

    Data is added in input sequence but this is a demonstration only!
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-02-2023
    Location
    G?teborg, Sweden
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Excel freezes when too many checkboxes have been created and linked to individual cell

    Thank you so much everybody!
    I found another workaround in order to achieve the desired functionality of the workbook but all your suggestions and help will definitely come in handy for another time and assignment!

  9. #9
    Registered User
    Join Date
    06-10-2024
    Location
    new zealand
    MS-Off Ver
    2021
    Posts
    2

    Re: Excel freezes when too many checkboxes have been created and linked to individual cell

    Hi Toranchan. I only need a simple excel file where approver1 can tick his checkbox once he is satisfied with the details in column F. Same goes for Approver2 and processed column.

    Thank you in advance in helping!
    Attached Files Attached Files

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: Excel freezes when too many checkboxes have been created and linked to individual cell

    Quote Originally Posted by newtoexcel2024 View Post
    Hi Toranchan. I only need a simple excel file where approver1 can tick his checkbox once he is satisfied with the details in column F. Same goes for Approver2 and processed column.

    Thank you in advance in helping!
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #1 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Record the checkboxes value which were created programmatically
    By Praveen_k_g in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-29-2020, 09:39 AM
  2. Replies: 7
    Last Post: 03-13-2016, 11:25 AM
  3. excel freezes after updating cells and runing macro
    By sfcleon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-08-2013, 03:06 PM
  4. Checkboxes with Linked Cells
    By m_wag in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-05-2010, 07:08 PM
  5. Inserting checkboxes and linked cells
    By Phil_Pope in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-23-2009, 12:38 AM
  6. [SOLVED] EXCEL 97 - Unable to open linked worksheets created in 2003
    By Van in forum Excel General
    Replies: 0
    Last Post: 01-05-2006, 08:30 AM
  7. Heavily linked spreadsheet freezes with "calculating cells 0%" - .
    By MJGOBLUE in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-09-2005, 11:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1