LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 148
Default using vba to copy user-defined chart type

My vba makes charts in Excel. I have a file that contains all of the code
and is used to generate other files with the charts. The charts have a
user-defined type. This means that others can not use the file unless they
have the same definitions.
I have hidden a sheet with a chart and tried to make the code "add" the
definition when it runs so that when it generates the charts the definition
will be there. However, it doesn't work.
This is what I have:
Sheets("Control Chart").Select
ActiveChart.ChartArea.Select
Application.AddChartAutoFormat Chart:=ActiveChart, Name:="willy", _
Description:=""
ActiveChart.ApplyCustomType ChartType:=xlUserDefined, TypeName:="willy"

Any ideas?

TIA

 
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
Cant delete user defined default chart type jenalee Charts and Charting in Excel 7 August 21st 09 08:00 PM
Setting up a Custom type, User-defined, Default Chart Kurt Charts and Charting in Excel 0 December 22nd 05 07:43 PM
Workspace faux user-defined type not defined Chris S[_2_] Excel Programming 3 November 11th 04 05:51 PM
User-defined data type; Error: Only User-defined types... tiger_PRM Excel Programming 1 July 18th 04 03:32 PM
User-defined chart type deployment Jeff K[_2_] Excel Programming 1 May 2nd 04 02:23 AM


All times are GMT +1. The time now is 01:33 PM.

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"