+ Reply to Thread
Results 1 to 4 of 4

Checkbox labels using cell values and formats

  1. #1
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Checkbox labels using cell values and formats

    I have a checkbox where I'd like the label to change depending on it's status. When on, it should have a static value, when off it should change to a combination of text provided and formatted values from another worksheet. I can get the values to appear, but I cannot determine how to set the number formatting.

    When the checkbox is un-selected, the result should be: "Using Actual Values 85% / 15%" The 85% and 15% come from Sheet2. When selected it should read "Using default Values 75% / 25%"

    Attached is an example workbook.
    Attached Files Attached Files

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Checkbox labels using cell values and formats

    Add .Text after the ("D4") and ("D5") in your code
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: Checkbox labels using cell values and formats

    Many thanks! This is just what I needed.

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Checkbox labels using cell values and formats

    You're welcome, glad it worked for you. Thank you for the rep.

+ 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. Multiple Checkbox values to one cell
    By MSchaffer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2017, 02:20 PM
  2. [SOLVED] Loop to check cell formats and values
    By Kira Myst in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2015, 11:47 AM
  3. [SOLVED] Changing only cell values, not formats.
    By SHUTTEHFACE in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-07-2015, 11:51 AM
  4. [SOLVED] Excel-13 Add values in array matching specific row labels, column labels within date range
    By fadeoutagain27 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-18-2014, 03:55 PM
  5. VBA to return values based on cell formats
    By xl121 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-31-2012, 01:26 PM
  6. Use Checkbox to Select Labels for Printing
    By ilundy77 in forum Access Tables & Databases
    Replies: 1
    Last Post: 10-10-2010, 09:17 AM
  7. Controlling shape formats by cell values
    By koval.andrey in forum Excel General
    Replies: 2
    Last Post: 09-03-2009, 06:43 AM

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