Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 354
Default Pivot chart, macro to change color

When I hit "refresh data", my chart go to default color. How can I avoid
this by writing a simple macro and assign to every worksheet?
Thnks
Daniel
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,344
Default Pivot chart, macro to change color

Hi,

Without writing a macro you can change the color pallette - choose Tools,
Options, Color and in the Chart Fills and Chart Lines modify the colors to
the ones you want. These are the colors the charts use for default colors.

One issue is that a custom color pallette belongs to the active workbook not
to Excel.

1. You can copy a pallette from one file to another by opening both files
and going to the Tools, Options, Color tab and choosing the Copy colors from
dropdown or
2. You can change the color pallette in the default workbook and then all
future workbooks will inherit that pallette.

If you still need a macro solution let us know
--
Cheers,
Shane Devenshire


"Daniel" wrote:

When I hit "refresh data", my chart go to default color. How can I avoid
this by writing a simple macro and assign to every worksheet?
Thnks
Daniel

  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 354
Default Pivot chart, macro to change color

Thanks Shane,
I have a lot of pivot charts and can not manually configure every charts.
I also tried "custom chart" and saved with a name but it's not work.
I am interested in macro for me and co-workers who are not familiar
with excel.
The macro should be applied for every charts in the work book. I just need
an example and modify from there.
Thanks again
Daniel

"ShaneDevenshire" wrote:

Hi,

Without writing a macro you can change the color pallette - choose Tools,
Options, Color and in the Chart Fills and Chart Lines modify the colors to
the ones you want. These are the colors the charts use for default colors.

One issue is that a custom color pallette belongs to the active workbook not
to Excel.

1. You can copy a pallette from one file to another by opening both files
and going to the Tools, Options, Color tab and choosing the Copy colors from
dropdown or
2. You can change the color pallette in the default workbook and then all
future workbooks will inherit that pallette.

If you still need a macro solution let us know
--
Cheers,
Shane Devenshire


"Daniel" wrote:

When I hit "refresh data", my chart go to default color. How can I avoid
this by writing a simple macro and assign to every worksheet?
Thnks
Daniel

  #4   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,344
Default Pivot chart, macro to change color

Hi,

Here is a sample macro:

Sub ResetColorPallette()
ActiveWorkbook.Colors(17) = RGB(204, 0, 153)
ActiveWorkbook.Colors(18) = RGB(255, 51, 153)
ActiveWorkbook.Colors(19) = RGB(102, 102, 255)
ActiveWorkbook.Colors(20) = RGB(102, 204, 255)
End Sub

This macro resets the first four default Fill colors for a chart. All you
need to do is 1. Turn on the macro recorder and then choose Tools, Options,
Colors, and modify any of the chart colors at the bottom of the screen, or in
fact any of the colors at all. Then turn off the recorder.

Cheers,
Shane Devenshire

--
Thanks,
Shane Devenshire


"Daniel" wrote:

Thanks Shane,
I have a lot of pivot charts and can not manually configure every charts.
I also tried "custom chart" and saved with a name but it's not work.
I am interested in macro for me and co-workers who are not familiar
with excel.
The macro should be applied for every charts in the work book. I just need
an example and modify from there.
Thanks again
Daniel

"ShaneDevenshire" wrote:

Hi,

Without writing a macro you can change the color pallette - choose Tools,
Options, Color and in the Chart Fills and Chart Lines modify the colors to
the ones you want. These are the colors the charts use for default colors.

One issue is that a custom color pallette belongs to the active workbook not
to Excel.

1. You can copy a pallette from one file to another by opening both files
and going to the Tools, Options, Color tab and choosing the Copy colors from
dropdown or
2. You can change the color pallette in the default workbook and then all
future workbooks will inherit that pallette.

If you still need a macro solution let us know
--
Cheers,
Shane Devenshire


"Daniel" wrote:

When I hit "refresh data", my chart go to default color. How can I avoid
this by writing a simple macro and assign to every worksheet?
Thnks
Daniel

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
Change the color of cells in the pivot table minrufeng Excel Discussion (Misc queries) 0 March 14th 06 08:18 PM
Change the color of some cells in the pivot table minrufeng Excel Discussion (Misc queries) 0 March 14th 06 08:17 PM
Bar chart: change color of a bar to red if value > x? Christian Münscher Charts and Charting in Excel 4 September 1st 05 07:48 AM
macro color change Dan Excel Worksheet Functions 0 February 15th 05 09:35 PM
Prevent change of color scheme in Pivot chart Bernd Charts and Charting in Excel 1 February 10th 05 07:12 PM


All times are GMT +1. The time now is 05:53 AM.

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

About Us

"It's about Microsoft Excel"