Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default Charts and Addins

Hi All
I have an addin, which I will issue to users, that converts a load of data
into various charts and tables. Currently, the user specifies the chart
types to use (the list is taken from the XLUSRGAL workbook) but this involves
adding a user-defined chart to each machine. Is there a method by which I
can 'add' a chart type to the addin which can be used instead of those in the
XLUSRGAL?

This is for Excel 2002.

Thanks
Andy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Charts and Addins

Hi Andy,

Just a thought - store a dummy chart as your custom type in your addin. In
the addin install event add to user's XLUSRGAL.

Periodically you could check if it still exists in the user gallery by
applying back to your dummy chart. Get and adapt code from the macro
recorder. Plenty of error handling though for all scenarios, including the
rare possibility of XLUSRGAL not being available.

Assumes you are distributing an addin rather than one on a network.

You can also copy paste chart formats, but there can be problems doing that
in some situations.

Regards,
Peter T


"Andy" wrote in message
...
Hi All
I have an addin, which I will issue to users, that converts a load of data
into various charts and tables. Currently, the user specifies the chart
types to use (the list is taken from the XLUSRGAL workbook) but this

involves
adding a user-defined chart to each machine. Is there a method by which I
can 'add' a chart type to the addin which can be used instead of those in

the
XLUSRGAL?

This is for Excel 2002.

Thanks
Andy



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default Charts and Addins

Hi Peter

This is probably a really stupid question but I don't seem to be able to get
the workbook that makes up my addin to appear on screen for me to add the
dummy chart to. How do I do this?
Thanks
Andy

"Peter T" wrote:

Hi Andy,

Just a thought - store a dummy chart as your custom type in your addin. In
the addin install event add to user's XLUSRGAL.

Periodically you could check if it still exists in the user gallery by
applying back to your dummy chart. Get and adapt code from the macro
recorder. Plenty of error handling though for all scenarios, including the
rare possibility of XLUSRGAL not being available.

Assumes you are distributing an addin rather than one on a network.

You can also copy paste chart formats, but there can be problems doing that
in some situations.

Regards,
Peter T


"Andy" wrote in message
...
Hi All
I have an addin, which I will issue to users, that converts a load of data
into various charts and tables. Currently, the user specifies the chart
types to use (the list is taken from the XLUSRGAL workbook) but this

involves
adding a user-defined chart to each machine. Is there a method by which I
can 'add' a chart type to the addin which can be used instead of those in

the
XLUSRGAL?

This is for Excel 2002.

Thanks
Andy




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Charts and Addins

In the VBE, select the add-in project. There is a property in project called
IsAddin, set that to False, and reset when done.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Andy" wrote in message
...
Hi Peter

This is probably a really stupid question but I don't seem to be able to

get
the workbook that makes up my addin to appear on screen for me to add the
dummy chart to. How do I do this?
Thanks
Andy

"Peter T" wrote:

Hi Andy,

Just a thought - store a dummy chart as your custom type in your addin.

In
the addin install event add to user's XLUSRGAL.

Periodically you could check if it still exists in the user gallery by
applying back to your dummy chart. Get and adapt code from the macro
recorder. Plenty of error handling though for all scenarios, including

the
rare possibility of XLUSRGAL not being available.

Assumes you are distributing an addin rather than one on a network.

You can also copy paste chart formats, but there can be problems doing

that
in some situations.

Regards,
Peter T


"Andy" wrote in message
...
Hi All
I have an addin, which I will issue to users, that converts a load of

data
into various charts and tables. Currently, the user specifies the

chart
types to use (the list is taken from the XLUSRGAL workbook) but this

involves
adding a user-defined chart to each machine. Is there a method by

which I
can 'add' a chart type to the addin which can be used instead of those

in
the
XLUSRGAL?

This is for Excel 2002.

Thanks
Andy






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Charts and Addins

Select the ThisWorkbook module of your addin and in properties (F4) change
the IsAddin setting from True to False (reset when done).

I would add a chart sheet, ensure it has at least the minimum number of
series, and if necessary categories, for your chart type. For values just
enter ={1} in series source data for single point. If more points are needed
say =(1,1,1)

Before doing all this in your addin, why not get everything working with
code tested in a normal workbook and simulate the addin install event in a
normal macro.

Regards,
Peter T


"Andy" wrote in message
...
Hi Peter

This is probably a really stupid question but I don't seem to be able to

get
the workbook that makes up my addin to appear on screen for me to add the
dummy chart to. How do I do this?
Thanks
Andy

"Peter T" wrote:

Hi Andy,

Just a thought - store a dummy chart as your custom type in your addin.

In
the addin install event add to user's XLUSRGAL.

Periodically you could check if it still exists in the user gallery by
applying back to your dummy chart. Get and adapt code from the macro
recorder. Plenty of error handling though for all scenarios, including

the
rare possibility of XLUSRGAL not being available.

Assumes you are distributing an addin rather than one on a network.

You can also copy paste chart formats, but there can be problems doing

that
in some situations.

Regards,
Peter T


"Andy" wrote in message
...
Hi All
I have an addin, which I will issue to users, that converts a load of

data
into various charts and tables. Currently, the user specifies the

chart
types to use (the list is taken from the XLUSRGAL workbook) but this

involves
adding a user-defined chart to each machine. Is there a method by

which I
can 'add' a chart type to the addin which can be used instead of those

in
the
XLUSRGAL?

This is for Excel 2002.

Thanks
Andy








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Charts and Addins

Typo

If more points are needed say =(1,1,1)


should be array brackets, ={1,1,1}

Peter T


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
addins KRK New Users to Excel 1 March 18th 10 07:34 PM
addins & UDF yshridhar Excel Worksheet Functions 1 August 25th 07 09:23 AM
AddIns bill_morgan Excel Discussion (Misc queries) 7 July 16th 05 11:12 PM
addins anuragiyer Excel Programming 1 December 3rd 03 09:58 AM


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

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

About Us

"It's about Microsoft Excel"