+ Reply to Thread
Results 1 to 3 of 3

Counting true result test from check boxes

Hybrid View

  1. #1
    Registered User
    Join Date
    03-12-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    365
    Posts
    41

    Counting true result test from check boxes

    I am working on creating a lesson program tracking sheet. Students can pay for the month upfront but the teacher wants options to mark every time they teach a specific student. This was if for example in June the student only had 2 lessons the teacher would have checked off 2 boxes thus the student could have an additional 2 lessons in July.

    VBA code: This is not returning a text of true or false for me to count.
    Sub addMultipleCheckBoxes()

    On Error Resume Next
    Set wr = Application.Selection
    Set wr = Application.InputBox("Select one Range that you want to add checkbox in:", "addMultipleCheckBoxes", wr.Address, Type:=8)
    Set wsheet = Application.ActiveSheet

    i = 1
    For Each R In wr
    With wsheet.CheckBoxes.Add(R.Left, R.Top, R.Width, R.Height)
    With Selection
    .Characters.Text = R.Value

    .Caption = "Check Box" & i
    i = i + 1
    End With
    End With
    Next
    wr.ClearContents
    wr.Select
    End Sub
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-12-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    365
    Posts
    41

    Re: Counting true result test from check boxes

    Also this may not even be the best approach for such a practice. The user is not very computer savy so I am open to any suggestions. I figured a check box would be easier to fill then typing in words, etc.

  3. #3
    Registered User
    Join Date
    03-12-2018
    Location
    Philadelphia, PA
    MS-Off Ver
    365
    Posts
    41

    Re: Counting true result test from check boxes

    No suggestions at all?

+ 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. Counting check boxes in excel
    By catlens in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-20-2017, 01:15 PM
  2. [SOLVED] If the IF function result is false then check the next cell until get a true result
    By Beag air Bheag in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-10-2017, 08:55 AM
  3. Changing checkbox background color - loop to check all tick boxes on sheet for status TRUE
    By Vegiepie2016 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-19-2016, 10:33 AM
  4. Replies: 5
    Last Post: 12-09-2012, 11:04 PM
  5. [SOLVED] Make all check boxes = true
    By azland00123 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 03-26-2012, 11:41 AM
  6. Counting check boxes
    By jesika in forum Access Tables & Databases
    Replies: 3
    Last Post: 03-21-2009, 12:15 AM
  7. Replies: 2
    Last Post: 03-07-2009, 11:44 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