Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Exporting Black and White Charts.
Written by Allen Wyatt (last updated July 10, 2021)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365
Excel allows you to create charts in full color. When you get ready to print the chart, you can instruct Excel to print it in "black and white" (on the Chart tab of the Page Setup dialog box). You may wonder if there is a way to export this "black and white" version of the chart, so that you can work with it in a different program.
The answer is that you cannot do this, at least not directly. To understand why this is, you must understand how the "print in black and white" feature works. This feature only affects what is sent to the printer driver (to your printer), it doesn't affect the actual chart at all. Even when you use Print Preview, you are not viewing your actual chart, but a representation of what your chart will look like when printed. Thus, you are seeing printer output, not the real chart.
If you want to export a black and white version of your chart, there are several ways to accomplish the task. The first is to simply view the chart in Print Preview and do a screen capture (press Alt+Print Screen). You can then paste the screen into your favorite graphics program and touch it up, as desired.
If you want to export the chart instead of just capturing the screen, then you should change the colors of the chart so that they really are grayscale and contain the same patterns you would see if you chose to print in black and white. This approach actually changes the source for the chart, rather than relying on Excel to do a transformation of the chart when you print. Once you get done making the formatting changes, you can even save the chart as a "chart template" so you can use it as a pattern for other charts you create.
If desired, you can also use a macro to convert between color and grayscale chart presentation. This approach is highly dependent on the colors you want to use in the chart, the type of chart you are using, and the number of data series in the chart. The following is an example of a macro that will toggle the colors in a data series between color and black and white, for up to five data series.
Option Explicit Public bColored As Integer Sub ColoredToBW() Dim cht As Chart Dim chtSC As SeriesCollection Dim x As Integer Dim iSeriesCount As Integer Dim iColors(1 To 5, 0 To 1) As Integer Dim iColor As Integer 'Set colors for BW series iColors(1, 0) = 1 'Black iColors(2, 0) = 56 'Gray-80% iColors(3, 0) = 16 'Gray-50% iColors(4, 0) = 48 'Gray-40% iColors(5, 0) = 15 'Gray-25% 'Set colors for Color series iColors(1, 1) = 55 'Indigo iColors(2, 1) = 7 'pink iColors(3, 1) = 6 'yellow iColors(4, 1) = 8 'Turquoise iColors(5, 1) = 13 'Violet 'Toggle Color/BW change 0 to 1 or 1 to 0 bColored = 1 - bColored Set cht = ActiveChart 'check that a chart is selected If cht Is Nothing Then MsgBox ("Select a chart") Exit Sub End If Set chtSC = cht.SeriesCollection 'Check for MIN of number of series or 'colors and only do the minimum iSeriesCount = Application.WorksheetFunction.Min _ (UBound(iColors), chtSC.Count) For x = 1 To iSeriesCount 'Define the color iColor = iColors(x, bColored) 'Set the LINE color chtSC(x).Border.ColorIndex = iColor 'Marker color With chtSC(x) .MarkerBackgroundColorIndex = xlNone .MarkerForegroundColorIndex = iColor End With Next x End Sub
This example will not work with all chart types; you will need to modify it to reflect your needs. It will, however, serve as a starting point for making your own macro.
Note:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (10447) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Exporting Black and White Charts.
Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!
Unhappy with the default size that Excel uses for embedded chart objects? You can't change the size at which they are ...
Discover MoreWouldn't it be great to have your huge charts print out on multiple pieces of paper that you could then piece together? ...
Discover MoreFiguring out how to get the data points in an X-Y scatter plot labeled can be confusing; Excel certainly doesn't make it ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
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.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments