+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting on several shapes on one worksheet

  1. #1
    Registered User
    Join Date
    07-11-2017
    Location
    New York, USA
    MS-Off Ver
    ProPlus
    Posts
    2

    Conditional Formatting on several shapes on one worksheet

    Hello. This is my first time posting here on this forum. Nice to meet you all.

    I am new to VBA in general and I'm not much of a tech savvy person but I am trying to learn VBA to make my tasks easier and efficient.

    I am trying to make a Conditional Formatting on the three circles shown below on the picture. Basically what I'm trying to do is whenever I alter the percentages on cells L3, M3, and N3, the corresponding circle (A, B, and C) will change based on the colour (If Team A's score is 81%, it will turn orange, and vice versa).

    sample1.PNG

    I know that I can do the Conditional Formatting on one shape through VBA but is it possible to specify the shape to its assigned cell percentage? That's the part where I'm stuck at.

    Any help would be very much appreciated.

    Thank you.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,234

    Re: Conditional Formatting on several shapes on one worksheet

    Please post the code you have got so far - don't forget to wrap it in code tags using the # symbol on the editor toolbar.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-11-2017
    Location
    New York, USA
    MS-Off Ver
    ProPlus
    Posts
    2

    Re: Conditional Formatting on several shapes on one worksheet

    Hello. Here's the code that I tried to incorporate to my sheet. But I just couldn't make it to suit my need.

    Please Login or Register  to view this content.
    I just started it with simple conditions instead of range, I can tweak it later once I got the colours up and working.

    It worked fine if I add just one Oval but when I added the other two it's not working anymore. I simply do not know how to name or differentiate the other two Oval shapes. I tried adding Dim at the start, did not worked also. Given that it's an ActiveSheet, does it affect the balance of the code?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,234

    Re: Conditional Formatting on several shapes on one worksheet

    Could you attach the workbook, too? Thanks.

+ 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. [SOLVED] conditional formatting freeform shapes Part 2
    By kevinu in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 04-21-2017, 11:04 AM
  2. Conditional Formatting Shapes using VBA
    By Dial1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2015, 12:10 PM
  3. Conditional Formatting For Text Inside Shapes
    By Louis.Shakespeare in forum Excel General
    Replies: 9
    Last Post: 09-29-2014, 07:46 AM
  4. conditional formatting shapes
    By carpetmanist in forum Excel General
    Replies: 0
    Last Post: 01-15-2014, 12:03 PM
  5. Conditional Formatting for shapes in Excel
    By carlobulalo in forum Excel General
    Replies: 1
    Last Post: 08-15-2013, 06:36 AM
  6. Replace conditional Formatting with Shapes
    By Rikuk in forum Excel General
    Replies: 2
    Last Post: 08-23-2005, 09:05 PM
  7. Replace conditional Formatting with Shapes
    By Rikuk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2005, 09:05 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