PC Review


Reply
Thread Tools Rate Thread

Custom charts - default formatting

 
 
tomjohns
Guest
Posts: n/a
 
      19th Sep 2005
Hi,

I am making a custom chart and hits the problem mentioned in the
article from Peltier:
http://peltiertech.com/Excel/ChartsH...stomTypes.html

It says: "Another problem with a custom chart type, or any chart with
customized formatting. If a chart element with custom formatting is
removed from the chart, then added again, the custom formatting is
lost, and the element takes on the default formatting for that element
in the default chart."

Is there a smart way to solve this problem? Could the best thing to do
be some VBA-coding and to keep track on the change-event from the chart
and then reapply the custom chart type?

 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      19th Sep 2005
What element of the chart is losing its formatting?

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


tomjohns wrote:

> Hi,
>
> I am making a custom chart and hits the problem mentioned in the
> article from Peltier:
> http://peltiertech.com/Excel/ChartsH...stomTypes.html
>
> It says: "Another problem with a custom chart type, or any chart with
> customized formatting. If a chart element with custom formatting is
> removed from the chart, then added again, the custom formatting is
> lost, and the element takes on the default formatting for that element
> in the default chart."
>
> Is there a smart way to solve this problem? Could the best thing to do
> be some VBA-coding and to keep track on the change-event from the chart
> and then reapply the custom chart type?
>

 
Reply With Quote
 
=?Utf-8?B?Ymo=?=
Guest
Posts: n/a
 
      19th Sep 2005
I don't know if it is the best way, but I have done it for complex charts

I set up a sheet with the name "record"
and run macros similar to

Sub tryin()
For i = 1 To SeriesCollection.Count
Sheets("record").Cells(i, 1) = CI(i)
Next i
End Sub
Sub tryout()
For i = 1 To SeriesCollection(i)
SeriesCollection(i).ColorIndex = Sheets("record").Cells(i, 1)
Next i
End Sub

needless to say these are not the full macro

"tomjohns" wrote:

> Hi,
>
> I am making a custom chart and hits the problem mentioned in the
> article from Peltier:
> http://peltiertech.com/Excel/ChartsH...stomTypes.html
>
> It says: "Another problem with a custom chart type, or any chart with
> customized formatting. If a chart element with custom formatting is
> removed from the chart, then added again, the custom formatting is
> lost, and the element takes on the default formatting for that element
> in the default chart."
>
> Is there a smart way to solve this problem? Could the best thing to do
> be some VBA-coding and to keep track on the change-event from the chart
> and then reapply the custom chart type?
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
code for formatting like custom cell formatting in excel DawnTreader Microsoft Access Form Coding 12 12th Jul 2008 01:12 PM
MS Graph in 2007 : cannot set custom charts as "default" Nicolo Microsoft Powerpoint 0 1st Apr 2008 09:00 AM
Default formatting for charts Sox Microsoft Excel Charting 1 15th Mar 2008 05:04 PM
expanding custom formatting without removing existing cell formatting? Keith Microsoft Excel Worksheet Functions 3 27th Dec 2006 01:54 PM
Custom Formula Requires Custom Formatting Yogi_Bear_79 Microsoft Excel Discussion 2 22nd Nov 2006 04:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:51 AM.