+ Reply to Thread
Results 1 to 5 of 5

6 star ranking system: how to select a rating by clicking on one of the stars

  1. #1
    Registered User
    Join Date
    08-05-2016
    Location
    Pretoria
    MS-Off Ver
    2016
    Posts
    6

    6 star ranking system: how to select a rating by clicking on one of the stars

    Hello again,

    For my music database I set up a system of IF-formulas to turn a numeric rating into a 6 star visual. Now I want to make it possible to click one of the stars to change the rating. I understand I need to set up a macro but I am a newb with VBA. Can anyone tell me the needed code? I would also need a button to remove any rating. I attach the worksheet.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: 6 star ranking system: how to select a rating by clicking on one of the stars

    How if the setup is like the one in the attached file ?

    The code is :
    Please Login or Register  to view this content.
    Attached Files Attached Files
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Registered User
    Join Date
    08-05-2016
    Location
    Pretoria
    MS-Off Ver
    2016
    Posts
    6

    Re: 6 star ranking system: how to select a rating by clicking on one of the stars

    Thank you!!!

  4. #4
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: 6 star ranking system: how to select a rating by clicking on one of the stars

    You are welcome.
    Don't forget to mark this thread as solved :
    please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

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

    Re: 6 star ranking system: how to select a rating by clicking on one of the stars

    I think this will do what you want.
    If you put this in the code module for the sheet, it will set the ratings when you click on your stars.
    Since Selection is so volatile, it also creates an Undo (ctrl-Z)
    Please Login or Register  to view this content.
    To keep the unDo and ReDo stacks clean, this code should be put in the ThisWorkbook code module
    Please Login or Register  to view this content.
    The Clear Ratings button calls this code in a normal module
    Please Login or Register  to view this content.
    Attached Files Attached Files
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ 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. Need to calculate 5 star reviews for given rating in excel
    By aism in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-05-2014, 04:05 PM
  2. Adding 5 star rating system
    By tarnationify in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 06-19-2014, 10:50 AM
  3. [SOLVED] Where did I go Wrong? inserting a 5 star rating in excel VBA
    By Dyls in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-23-2013, 05:32 AM
  4. Add 5 Star Rating to cell
    By panamakevin in forum Excel General
    Replies: 9
    Last Post: 10-10-2012, 04:25 PM
  5. Ranking by Rating
    By Mike2020 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-31-2007, 07:04 PM
  6. Rating system
    By TTL in forum Excel General
    Replies: 1
    Last Post: 07-10-2007, 12:17 AM
  7. Rating Stars As Chart
    By swieduwi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-17-2005, 07:33 AM

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