ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Retrieving Default Chart Type? (https://www.excelbanter.com/excel-programming/302978-retrieving-default-chart-type.html)

NooK[_21_]

Retrieving Default Chart Type?
 
I looked everywhere but couldn't find it, is there a way I can retriev
the default chart type in Excel through VBA?

I need to change it so I would like to set it back to what it wa
before after I've done it what I needed.

Best Regards

Noo

--
Message posted from http://www.ExcelForum.com


NooK[_32_]

Retrieving Default Chart Type?
 
Isn't there anyway to do it?

Best Regards

Noo

--
Message posted from http://www.ExcelForum.com


Peter T[_3_]

Retrieving Default Chart Type?
 
Hi NooK,

Create and select a temporary chart:

CType = ActiveChart.ChartType

If you are trying to change and restore the original
Default Chart be aware that the "ChartType" is only one of
a whole bunch of properties you might have changed.

Have you considered creating your own Custom User defined
Chart and applying that instead of the Default - would
avoid messing with the Default. Custom Types / User-
defined / Add.

Alternatively, store the Default chart as a User defined
Chart (as above, named say "Default_orig"), do your stuff,
and reset Default_orig as the Default chart.

Should be possible to record a macro for each of the
above, and adapt to your needs.

Regards,
Peter

-----Original Message-----
I looked everywhere but couldn't find it, is there a way

I can retrieve
the default chart type in Excel through VBA?

I need to change it so I would like to set it back to

what it was
before after I've done it what I needed.

Best Regards

NooK


---
Message posted from http://www.ExcelForum.com/

.



All times are GMT +1. The time now is 10:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com