PC Review


Reply
Thread Tools Rate Thread

Creating a function from a chart

 
 
=?Utf-8?B?S2VuIEthemluc2tp?=
Guest
Posts: n/a
 
      18th Nov 2006
Does anyone know where I can find code that will take a chart object and
create function (or a text file to be imported) for a chart.

I have a number of charts on a sheet and I want to delete the charts to make
the file smaller and then run a macro to create the charts. After all the
data has been added.

Thanks,

Ken

 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      18th Nov 2006
This is a strange objective. I'm sure it will not provide the benefits you
are seeking.

How large is your file? How much smaller is a copy of the file without the
charts? I just took a workbook with 66 charts, saved a copy without the
charts, and compared their file sizes. The workbook without charts is 90 kb,
the one with charts is 350 kb. That's under 4 kb per chart, and the charts
are rather complicated. How much space will you need to store all of the
information required to reproduce these charts, plus the VBA code? Will the
VBA procedure work reliably enough to recreate all of the charts without
issues? How much time will it take for you to develop the VBA procedures
this will require? Is it worth the effort in order to save the cost of disk
space (around $1 per 2 GB for a large external HD) or bandwidth?

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


"Ken Kazinski" <(E-Mail Removed)> wrote in message
news:0C890156-380E-4AAE-B0E8-(E-Mail Removed)...
> Does anyone know where I can find code that will take a chart object and
> create function (or a text file to be imported) for a chart.
>
> I have a number of charts on a sheet and I want to delete the charts to
> make
> the file smaller and then run a macro to create the charts. After all the
> data has been added.
>
> Thanks,
>
> Ken
>



 
Reply With Quote
 
=?Utf-8?B?S2VuIEthemluc2tp?=
Guest
Posts: n/a
 
      22nd Nov 2006
Hi Jon,

The problem is also that with the data set I have it takes a long time to
update the sheet when I re-import my data.

I inhearited the workbook so my other reason for doing this is that I want
all my charts to be the same from one sheet or workbook to another.

Ken


"Jon Peltier" wrote:

> This is a strange objective. I'm sure it will not provide the benefits you
> are seeking.
>
> How large is your file? How much smaller is a copy of the file without the
> charts? I just took a workbook with 66 charts, saved a copy without the
> charts, and compared their file sizes. The workbook without charts is 90 kb,
> the one with charts is 350 kb. That's under 4 kb per chart, and the charts
> are rather complicated. How much space will you need to store all of the
> information required to reproduce these charts, plus the VBA code? Will the
> VBA procedure work reliably enough to recreate all of the charts without
> issues? How much time will it take for you to develop the VBA procedures
> this will require? Is it worth the effort in order to save the cost of disk
> space (around $1 per 2 GB for a large external HD) or bandwidth?
>
> - Jon
> -------
> Jon Peltier, Microsoft Excel MVP
> Tutorials and Custom Solutions
> http://PeltierTech.com
> _______
>
>
> "Ken Kazinski" <(E-Mail Removed)> wrote in message
> news:0C890156-380E-4AAE-B0E8-(E-Mail Removed)...
> > Does anyone know where I can find code that will take a chart object and
> > create function (or a text file to be imported) for a chart.
> >
> > I have a number of charts on a sheet and I want to delete the charts to
> > make
> > the file smaller and then run a macro to create the charts. After all the
> > data has been added.
> >
> > Thanks,
> >
> > Ken
> >

>
>
>

 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      25th Nov 2006

> The problem is also that with the data set I have it takes a long time to
> update the sheet when I re-import my data.


....because...? If the new data has the same layout as the old, copy it from
its original worksheets, then paste special as values onto the worksheets
used as source data by the charts.

> I inhearited the workbook so my other reason for doing this is that I want
> all my charts to be the same from one sheet or workbook to another.


Make a few user-defined chart types:

http://peltiertech.com/Excel/ChartsH...stomTypes.html

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



 
Reply With Quote
 
=?Utf-8?B?S2VuIEthemluc2tp?=
Guest
Posts: n/a
 
      25th Nov 2006
Thanks Jon - the custom chart seems the way to go.

"Jon Peltier" wrote:

>
> > The problem is also that with the data set I have it takes a long time to
> > update the sheet when I re-import my data.

>
> ....because...? If the new data has the same layout as the old, copy it from
> its original worksheets, then paste special as values onto the worksheets
> used as source data by the charts.
>
> > I inhearited the workbook so my other reason for doing this is that I want
> > all my charts to be the same from one sheet or workbook to another.

>
> Make a few user-defined chart types:
>
> http://peltiertech.com/Excel/ChartsH...stomTypes.html
>
> - Jon
> -------
> Jon Peltier, Microsoft Excel MVP
> Tutorials and Custom Solutions
> http://PeltierTech.com
> _______
>
>
>
>

 
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
Creating a mix of column and scatter chart on one chart. Matt G Microsoft Excel Charting 1 17th Jun 2009 05:25 AM
Creating Pie Chart WLMPilot Microsoft Excel Charting 3 23rd Apr 2009 05:20 PM
creating a pie chart =?Utf-8?B?Ymx1ZQ==?= Microsoft Excel Charting 1 20th Apr 2006 09:04 AM
Creating a Macros function but co9ntent of function only works in a sub plz help Alexandre Brisebois (www.pointnetsolutions.com) Microsoft Excel Discussion 6 20th Jul 2005 06:26 PM
Creating a chart in VBA =?Utf-8?B?Sk1H?= Microsoft Access VBA Modules 7 2nd Mar 2005 08:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:50 PM.