[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Excel VBA Conditional Formatting Shapes

Posted on 2014-04-18
4
Medium Priority
?
1,812 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 19

Expert Comment

by:Ken Butters
ID: 40009432
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
ID: 40009497
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 2000 total points
ID: 40009668
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
ID: 40010313
Very Good -- Thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

649 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