+ Reply to Thread
Results 1 to 3 of 3

CheckBox Sub Routine??????

  1. #1
    Registered User
    Join Date
    07-16-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    12

    CheckBox Sub Routine??????

    I have a spreadsheet where I am simply assigning the value of a CheckBox to a Range of Cells so later I can hide all that have a "False" value assigned to them. Currently I have the code under an AcceptButton but wondered if there is a cleaner way to get the same result with less code. One of my colleagues has told me that he believes I can do this by placing code in each CheckBox and under the Accept Button by using a sub routine. Here is a sample of the code currently only in the AcceptButton:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: CheckBox Sub Routine??????

    Using If to set boolean values is often unneeded
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    07-16-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    12

    Re: CheckBox Sub Routine??????

    Thank you mikerickson it works perfectly and now I see I was way over thinking this.

+ 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. 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
  2. Replies: 0
    Last Post: 04-07-2014, 12:22 PM
  3. Lock cell linked to checkbox when checkbox is ticked
    By simeony003 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2013, 10:08 AM
  4. Replies: 4
    Last Post: 07-22-2013, 01:37 PM
  5. Pass a variable from one sub-routine to another sub-routine
    By gowtham_pec in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-01-2013, 07:07 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