+ Reply to Thread
Results 1 to 4 of 4

Using ActiveX CheckBox Control to make a cell change colour and clear values

Hybrid View

  1. #1
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Using ActiveX CheckBox Control to make a cell change colour and clear values

    You can't do that with justa chckbox. Once run the code will not recognise when a number is entered. Why not use a WorkSheet event instead of the checkboxes.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  2. #2
    Registered User
    Join Date
    08-19-2012
    Location
    NZ
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Using ActiveX CheckBox Control to make a cell change colour and clear values

    Thanks for the tip Roy.

    I considered trying to code it that way but I couldn't figure out how to only colour the cell when the checkbox is ticked from a WorkSheet event. It would be pretty straightforward to colour the cell depending on whether any text was entered using conditional formatting outside of VBA, but I guess it brings me back to my original question - how do I get the cell to change colours only when the checkbox is ticked?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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