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: 1
Default Is there a maximum number of Add-ins allowed? - strange Excel behaviour

Hi all,

A strange thing happens to me when trying to add a new Add-in to the
list of available Add-ins in Excel XP:

Currently there are 15 Addins listed in my Addin dialog screen
(Tool/Add-ins...). Using COM Automation (via Pascal scripting in Inno
Setup), I am trying to add one more to the list. The code is similar to
this (but slightly different due to the Pascal script requirements).

Dim oXL as Object, oAddin as Object

Set oXL = CreateObject("Excel.Application")
oXL.Workbooks.Add
Set oAddin = oXL.Addins.Add(..\"MyAddin.xla",True)
oAddin.Installed = True
oXL.Quit

This works fine.
However, my Add-in should only be activated when the user uses a
specific template workbook. So I don't want to have it installed as a
default, just registered with Excel so it is available in the Add-ins
dialog window. Also this works fine. So what is the problem you might
think?

It turns out that if the Add-in dialog is already filled with Add-ins
(i.e. 15 or more), that the newly added Add-in can not be found in the
list anymore! If I get rid of just one Addin from the available list of
Add-ins, than there is no problem, but 15 Add-ins just seems to be the
critical number here.

A work-around is to leave the Add-in installed using code similar as
above and have code in the template file that ensures that the Add-in is
uninstalled when that template file is closed. But I just wondered why
this strange behaviour occurs. Is it true that there is a maximum number
of Add-ins that can be handled normally.

I am sure somebody must have seen this before, but searching the
archives did not bring me any further.

Anybody?

Best regards,

Bennie Douma

Excel XP / Windows XP Home Edition

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
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
Maximum number of variables allowed in an Excel Spreadsheet? cecilie Excel Discussion (Misc queries) 1 April 14th 08 06:48 PM
changing maximum characters allowed in excel cells slipman Excel Discussion (Misc queries) 2 March 9th 07 11:34 PM
strange behaviour in Excel 2003 when importing XML Marius Bancila Excel Discussion (Misc queries) 1 October 23rd 06 08:53 AM
Strange behaviour - loading Excel clears Clipboard Trevor Shuttleworth Excel Discussion (Misc queries) 1 August 19th 06 10:04 PM
What is the maximum allowed number of data elements in a data array? [email protected] Excel Discussion (Misc queries) 2 April 7th 05 06:56 PM


All times are GMT +1. The time now is 08:49 AM.

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"