Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Conditional Formatting Drawing Objects

How to format the color of a drawing object based on
data "connected" to it - to create a Red/Yellow/Green
style flowchart that changes from month to month depending
on process performance?

I can conditional format CELLS in my sleep - but would
like to conditionally format drawing objects...

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Conditional Formatting Drawing Objects

Jon

This should give you some ideas. Assign the auto-shapes
to the (edited) macro.

Sub colorShape()
Application.OnCalculate = "Worksheet_Calculate"
End Sub
Private Sub Worksheet_Calculate()
If range("B3") = 50 Then
ActiveSheet.Shapes("AutoShape 1").Select
Selection.ShapeRange.Fill.ForeColor.SchemeColor = 43
Selection.ShapeRange.Fill.Visible = msoTrue
Selection.ShapeRange.Fill.Solid
Else
ActiveSheet.Shapes("AutoShape 1").Select
Selection.ShapeRange.Fill.ForeColor.SchemeColor = 35
Selection.ShapeRange.Fill.Visible = msoTrue
Selection.ShapeRange.Fill.Solid
End If
range("B1").Select
End Sub

Regards
Peter
-----Original Message-----
How to format the color of a drawing object based on
data "connected" to it - to create a Red/Yellow/Green
style flowchart that changes from month to month

depending
on process performance?

I can conditional format CELLS in my sleep - but would
like to conditionally format drawing objects...

Any ideas?
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting on a Drawing? Storm Excel Worksheet Functions 2 October 31st 07 04:38 PM
Excel Conditional formatting of objects krista Excel Discussion (Misc queries) 1 September 18th 07 06:26 PM
Conditional Formatting - Drawing Lines Between Sorted Groups Sam via OfficeKB.com Excel Discussion (Misc queries) 2 May 26th 06 03:02 PM
Group drawing objects in VBA Bubb Excel Discussion (Misc queries) 2 April 10th 06 04:22 PM
Cutting Drawing Objects LostNFound Excel Discussion (Misc queries) 3 August 12th 05 05:35 PM


All times are GMT +1. The time now is 01:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"