Solved

Excel VBA Conditional Formatting Shapes

Posted on 2014-04-18
4
1,670 Views
Last Modified: 2014-04-19
I have 3 oval shapes on an Excel worksheet that I want to conditionally format base on the %_Resolved below. If the % Resolved in the last month (in this case Apr - note: a new month gets added each month) >= 95% then Green Else Yellow.



Month             %_Resolved
Oct            63%
Nov            19%
Dec            19%
Jan            95%
Feb            98%
Mar            98%
Apr            91%
Year-to-date      70%
0
Comment
Question by:shieldsco
  • 2
  • 2
4 Comments
 
LVL 19

Expert Comment

by:Ken Butters
Comment Utility
I've added VBA code to "Sheet1" that modifies the color according to the last row of data.
Q-28415771.xlsm
0
 

Author Comment

by:shieldsco
Comment Utility
I have 3 oval shapes on an Excel worksheet that I want to conditionally format base on the %_Resolved below. I attached my spreadsheet with the VBA in it. I do not think it's working correctly for my situation
Test.xlsm
0
 
LVL 19

Accepted Solution

by:
Ken Butters earned 500 total points
Comment Utility
Looks like your 3 different ovals are conditioned based on 3 different pivot tables.

I've updated the code to check the various conditions in the pivot tables and color the associated shapes accordingly.
Test.xlsm
0
 

Author Closing Comment

by:shieldsco
Comment Utility
Very Good -- Thanks
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now