+ Reply to Thread
Results 1 to 2 of 2

"Conditionally formating" a Form object

  1. #1
    Registered User
    Join Date
    10-04-2012
    Location
    Not here, it's rubbish!
    MS-Off Ver
    Excel 2003/2007/2010
    Posts
    66

    "Conditionally formating" a Form object

    Hi All,

    I've been asked to design an expenses claim form in the style of an Excel dashboard and my boss has asked for a specific requirement; a visible / invisible checkbox.

    So the attached file hopefully illustrates what is required. Cell C3 requires an input value of either 0 or 1. If it's 0, cell C8 returns the text in F4 and if the value in C3 is 1 then C8 returns the text in F5. Simple enough. However, the tricky bit for me is finding the equivalent of conditional formatting to the form checkbox in cell B8; if the value in C3 is 0 (returning the text in F4) the checkbox needs to be visible. If the vlaue of C3 is set to 1 (returning the text in F5), the checkbox needs to "disappear" or effectively appear completely white so the user cannot check it.

    Is there a way of achieving this? Is it possible for the checkbox to "disappear" and prevent it from being checked in the "disappeared" state should the user try to check it by "hit & miss" efforts?

    Not having any expertise in this area, I'd be grateful for any pointers to solving this issue.

    Many thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: "Conditionally formating" a Form object

    Hi,
    you need to save your workbook as a macro enabled workbook first, .xlsm format. Right click the tab of your sheet to view code. Paste the following in the code window.
    Please Login or Register  to view this content.
    Frob first, tweak later

+ 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. Method "AddPicture" of object "InlineShapes" failed - but only one 1 computer
    By Alves76 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-20-2013, 10:49 AM
  2. Unable to run code in between "Unprotect" and "Protect" object.
    By eric1234 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-28-2013, 12:44 PM
  3. "Form and macro" to delete "Active" cell contents.
    By wanty in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2013, 11:33 PM
  4. [SOLVED] Conditionally format dates for "This week" AND "This month"?
    By Vermilion in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2012, 09:20 AM
  5. "The "sheets" method from the "_Global" object have failed."
    By mankit87 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2011, 08:53 AM
  6. Error msgs: "Object varible or with block variable not set"; "subscript out of range"
    By menyanthe in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-26-2009, 04:58 PM
  7. Using Form Object "Check Box" In Cells
    By Heather Black in forum Excel General
    Replies: 3
    Last Post: 06-06-2008, 01:17 PM
  8. What is Error "Method "Paste" of object "_Worksheet" failed?
    By vat in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-17-2006, 04:10 PM

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