+ Reply to Thread
Results 1 to 4 of 4

Struggling with a checkbox issue on my form

  1. #1
    Registered User
    Join Date
    09-01-2022
    Location
    Holywell, North Wales
    MS-Off Ver
    Office 365
    Posts
    23

    Struggling with a checkbox issue on my form

    Good afternoon everyone.

    I'm currently building a new order form using Excel at work and I have a front sheet which has three cells, each with a checkbox.
    Each tab corresponds to a tab on the form - each for different products. If the customer enters any value into a cell within specified ranges on one of the tabs, the frontsheet has a formula in which tells it to check the box to show order entry which tab has had information added.


    The issue I'm having is that some of the selections on the tabs are checkboxes and I've noticed that if the customer ticks a box and then unchecks it, it leaves FALSE in the linked cell and the checkbox on the front sheet thinks that this is customer input so remains checked.

    How do I stop Excel from displaying either TRUE or FALSE in the linked cell, thereby not providing my checkboxes on the front with spurious data? I want the customer to be able to tick the boxes where appropriate to select the correct product configuration they require but if they then uncheck the box because they ticked it by mistake, I want it to not affect the =IF(OR(NOT(ISBLANK formula on the front page.

    1.png2.png

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2505
    Posts
    27,209

    Re: Struggling with a checkbox issue on my form

    You've only given us a narrow slice of what you're doing. In particular I would like to see the full formula(s) on the main page that references the cell on the other tabs that are linked to checkboxes.

    I think you need something like this, which is simpler than what it looks like you have now:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If the box is checked the cell will be TRUE, and the IF will take the TRUE option. If the box is checked then unchecked, the cell will be FALSE and the IF will take the FALSE option. If the box has never been touched, the cell will be empty and the IF will also take the FALSE option.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    09-01-2022
    Location
    Holywell, North Wales
    MS-Off Ver
    Office 365
    Posts
    23

    Re: Struggling with a checkbox issue on my form

    Hi, so the full formula for the front page is:

    =IF(OR(NOT(ISBLANK('INTERNAL'!A31:P39)),NOT(ISBLANK('INTERNAL'!A52:P59)),NOT(ISBLANK('INTERNAL'!A72:P79)),TRUE,FALSE)

    The A32:P39 refers to a fillable table - same with A52:P59.
    A72:P79 contains two columns of check boxes with options for configuring the product the customer wants to order.

    As mentioned previously, if the customer for example is trying to order an internal product and they fill in the table - everything works fine.
    If they however check one of the boxes in the range above and then for whatever reason uncheck the box - perhaps changing their mind about certain aspects of the product configuration
    it returns a FALSE value in text in the cell linked to the checkbox in question and this causes the front sheet checkbox to remain ticked as it treats this FALSE text as a value the customer has entered.

    I can't add any further columns etc as we have the formatting of columns and rows in place - I just need to ascertain if there's a way of preventing Excel from displaying the TRUE or FALSE values, causing this incorrect reporting on the front sheet.

    For reference, the front sheet will work as a guide for our order entry staff - they know which sheet to go to for the customer information. It's only two tabs at present but we are looking to expand the form to encompass maybe up to 10 tabs for different product types.

    Hope this explains what I'm trying to do.

    Thanks
    Rich

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2505
    Posts
    27,209

    Re: Struggling with a checkbox issue on my form

    Your formula is invalid. It is missing a parenthesis (bracket). Here is what I'm guessing is the correct version.

    =IF(OR(NOT(ISBLANK(INTERNAL!A31:P39)),NOT(ISBLANK(INTERNAL!A52:P59)),NOT(ISBLANK(INTERNAL!A72:P79))),TRUE,FALSE)

    Don't use ISBLANK to test for logical values. Try this instead. I tested it on a mock-up of your sheet.

    =IFERROR(OR(INTERNAL!A31:P39,INTERNAL!A52:P59,INTERNAL!A72:P79),FALSE)

    If any cell has TRUE, it will return TRUE. If all cells are blank, it will take the error case and return FALSE. If the only values are FALSE, it will return FALSE.

    Without more information I can't say for sure but I am also guessing that these should be absolute references (INTERNAL!$A$31:$P$39)
    Last edited by 6StringJazzer; 01-03-2024 at 11:42 AM.

+ 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. Issue Populating PDF Checkbox via VBA that didn't Exist on Previous Form
    By MeleaB in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-17-2016, 08:09 PM
  2. Protect the sheet but the form checkbox still can be change and sort by checkbox
    By carolyn1221 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-19-2014, 01:08 PM
  3. Replies: 0
    Last Post: 04-07-2014, 12:22 PM
  4. Trying to scale a form checkbox in a macro, don't know how to get checkbox name
    By tstruch in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-09-2014, 12:14 AM
  5. Replies: 2
    Last Post: 03-19-2013, 08:01 AM
  6. checkbox on form reset from checkbox on sheet
    By raw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-03-2005, 01:15 AM
  7. [SOLVED] Strange issue freezing parent form when unloading a child form
    By Stefano Gatto in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-11-2005, 12:45 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