Changing the Color Inside a Shape

by Allen Wyatt
(last updated April 21, 2018)


When you have created a drawing object, you can fill it with a color of your choosing. This is easy to do by following these steps:

  1. Select the shape you want to fill.
  2. Make sure the Format tab of the ribbon is selected.
  3. In the Shape Styles group, click the Shape Fill tool. Excel displays a color menu.
  4. From the color menu, select the color you want to use.
  5. If you do not see your desired color displayed, click on More Fill Colors to display a wider selection of choices.

Once you select a color, Excel removes the color menu and fills the interior of the shape with the color selected. To remove a color you previously used, you can repeat the same steps, but in step 4 choose No Fill.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (6611) applies to Microsoft Excel 2007, 2010, 2013, and 2016.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...


Locking the Print Area

Excel allows you to specify an area of your worksheet that should be printed. Here's how to "lock" that area so it cannot ...

Discover More

Changing Your Printer Settings

Want to change how your printer does its work? You can easily control your printer by modifying the settings maintained ...

Discover More

Making Ignore All Work for a Document on All Systems

When you tell Word's spell checker to ignore all instances of a misspelling, you may expect that the misspelling will be ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Selecting Drawing Objects

Excel allows you to create all sorts of drawings using a wide assortment of tools. When you need to take an action upon ...

Discover More

Adding Text to a Drawing Shape

You can add text to all sorts of drawing shapes, not just text boxes. Here's how easy it is.

Discover More

Filling a Drawing Object

Want to add some spice to the graphics in your worksheets? There are many colors and effects in Excel that allow you take ...

Discover More

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.


If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is nine minus 4?

2015-10-02 10:07:20


Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
' Change object color when value in cell is changed

Dim Quantity As Double
Dim Color As Long ' variable for color based on cell value
Quantity = Range("I35").Value ' cell value changing object color
Select Case Quantity
Case Is <= 0: Exit Sub
Case 1 To 10: Color = vbRed
Case 11 To 20: Color = vbYellow
Case 21 To 30: Color = vbGreen
Case 31 To 40: Color = vbBlue
Case Is > 40: Color = vbBlack
End Select
ActiveSheet.Shapes.Range(Array("U-Turn Arrow 1")).Select
With Selection.ShapeRange.Fill
.Visible = msoTrue
.ForeColor.RGB = Color 'varible color value set in case statement
.Transparency = 0
End With
End Sub

2013-05-13 08:42:30


Mike...I think you are right, using VBA would be the way to go.

As to linking the color to the value of a cell, that would probably need to be done through the Worksheet_Change event, then using a Select Case for the color changes.

2013-05-11 08:29:52


I think you'd have to write some Visual Basic code to achieve this, because in effect you want to test the value of the cell to determine the colour to use. Cell colour is a property which can be set using a Visual Basic procedure. You might be able to do it using a macro, but the later versions of Excel actually use Visual Basic as the macro language.

2013-05-11 07:31:14


Is there a way to link the colour fill of a shape to a value generated in a cell so that if the value is 1- 10, the shape would be red, 11-20 = yellow, etc?

This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.