+ Reply to Thread
Results 1 to 17 of 17

Place a checkmark with a single mouse click?

  1. #1
    Registered User
    Join Date
    11-29-2008
    Location
    Southeast
    Posts
    22

    Place a checkmark with a single mouse click?

    I have a worksheet that I use to monitor the progress of student interns. They are assigned 20 different tasks and recieve 5 points for each task they complete, for a possible total of 100. In my worksheet, I record their progress and maintain a running total. I do this by simply inserting the number "5" by each cell containing each task. Instead of inserting the value, what I'd prefer to do is simply place my cursor, click the mouse button, and have a formattable check mark appear with a hidden value of "5". I'm simply trying to create a snazzy interface. Do I want too much? Or is it actually possible to do this?
    Last edited by HuntnPeck; 12-07-2008 at 08:10 PM.

  2. #2
    Forum Contributor
    Join Date
    08-22-2008
    Location
    S-o-t
    MS-Off Ver
    Office 2000 & 2010
    Posts
    166
    Hi

    Please see the attached sheet maybe this will get you started

    Dave
    Attached Files Attached Files

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Just a note, you don't actually need to keep "fives" totalling in the B column, even if you're going to hide them. The check marks in the Marlett font is enough info to get the count, too.

    Just create your column of checkmarks, you said 20 items, right? So set the Worksheet Range to cover those 20 cells. Then at the bottom, or wherever, just use the formula:

    Please Login or Register  to view this content.
    ...to get the total of "checkmarks" and 5 pts for each.

    Now, if you set your checkmarks up in ROWS instead of columns, then it would look something like:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JBeaucaire; 12-07-2008 at 04:15 AM. Reason: Added sample book
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    11-29-2008
    Location
    Southeast
    Posts
    22
    Thank you for the courteous responses. Your assistance with this is greatly appreciated. However, my goal is a bit more ambitious. I want to place my cursor over a designated cell and cause a check mark to appear with the simple click of a mouse button. I also want that check mark to have a value of 5 points. I'd even like to use a checkmark image that can be formatted for best visual appeal.

    Here's the challenge:

    1. Create a checkmark image that can be formatted.
    2. Cause certain cells to display that checkmark when they are selected by the cursor.
    3. Provide that checkmark image with a value of "5".

    I'd like to know if this can be done and how to go about it. Thanks again.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Everything you just described is provided for in Dave's answer and mine. Both sample workbooks we've uploaded show exactly what you've described, his in vertical format with a separate scoring column, and mine in horizontal format with an integrated scoring formula.

  6. #6
    Registered User
    Join Date
    11-29-2008
    Location
    Southeast
    Posts
    22
    I must be doing something wrong. I copied and pasted the exact code you provided, but changed the range to accomodate my worksheet. When I click on a cell, nothing happens. If I enter the number "5", a small triangle appears (with a value of 5). I know nothing about VBA, so I may be misunderstanding the proper way to insert the code. I highlighted my worksheet number and used the "Worksheet" and "Selection Change" catagories, just as it appeared in your attachment. Did I follow the correct procedure?

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    What's your range? Or just post the sheet.

  8. #8
    Forum Contributor
    Join Date
    08-22-2008
    Location
    S-o-t
    MS-Off Ver
    Office 2000 & 2010
    Posts
    166
    Hi

    Check your security settings to run macros

    Goto Tools>Macro>Security If its set as High then you need to add the site in the Trusted sources or change to medium or low.

    The sheet is no longer adding the number 5's it's counting the letter "a" then times by 5. if you type in the letter "a" you will see what i mean.

    Let me know if this helps

    Dave

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    ... or change to medium or low.
    You seriously never want to set Macro Security to Low.
    Entia non sunt multiplicanda sine necessitate

  10. #10
    Registered User
    Join Date
    11-29-2008
    Location
    Southeast
    Posts
    22
    Quote Originally Posted by Dave69rock View Post
    Hi

    Check your security settings to run macros

    Goto Tools>Macro>Security If its set as High then you need to add the site in the Trusted sources or change to medium or low.

    The sheet is no longer adding the number 5's it's counting the letter "a" then times by 5. if you type in the letter "a" you will see what i mean.

    Let me know if this helps

    Dave
    Yep. I typed an "a" into one of the designated cells and when I hit ENTER, it changes to a checkmark. Does that indicate what I've done wrong?

  11. #11
    Forum Contributor
    Join Date
    08-22-2008
    Location
    S-o-t
    MS-Off Ver
    Office 2000 & 2010
    Posts
    166
    Hi

    That means the code is working fine

    Dave

  12. #12
    Forum Contributor
    Join Date
    08-22-2008
    Location
    S-o-t
    MS-Off Ver
    Office 2000 & 2010
    Posts
    166
    Post a sample of your workbook

  13. #13
    Registered User
    Join Date
    11-29-2008
    Location
    Southeast
    Posts
    22
    Quote Originally Posted by Dave69rock View Post
    Post a sample of your workbook
    It's still in development, but here's part of it...
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    08-22-2008
    Location
    S-o-t
    MS-Off Ver
    Office 2000 & 2010
    Posts
    166
    i can't open the file are you using windows 2007?

    If so save it as an earlier version

    Dave

  15. #15
    Registered User
    Join Date
    11-29-2008
    Location
    Southeast
    Posts
    22
    Quote Originally Posted by Dave69rock View Post
    i can't open the file are you using windows 2007?

    If so save it as an earlier version

    Dave
    Yes, I'm using Excel 2007. Here's the earlier version you requested. Thanks for the assistance.
    Attached Files Attached Files

  16. #16
    Forum Contributor
    Join Date
    08-22-2008
    Location
    S-o-t
    MS-Off Ver
    Office 2000 & 2010
    Posts
    166
    its not working because the cells are merged

    I'm sure the code could be changed to accommodate merged cells but i'm not sure how to do it just yet, i can work on it, but looking at your sheet there seems no reason to merge cells D & E just have the student name in cell D

    Dave
    Last edited by Dave69rock; 12-07-2008 at 07:43 PM.

  17. #17
    Registered User
    Join Date
    11-29-2008
    Location
    Southeast
    Posts
    22
    Quote Originally Posted by Dave69rock View Post
    its not working because the cells are merged

    I'm sure the code could be changed to accommodate merged cells but i'm not sure how to do it just yet, i can work on it, but looking at your sheet there seems no reason to merge cells D & E just have the student name in cell D

    Dave
    Thanks, Dave. I had the cells merged to accomodate the student's first and last name. Once I "unmerged" them, your code worked very well. I'd really like to learn more about developing codes. As you can see, I've got much to learn. Thanks again for all the help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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