PC Review


Reply
Thread Tools Rate Thread

Add-in with IDTExtensibility2 and worksheet formulae

 
 
Lars
Guest
Posts: n/a
 
      25th Jun 2007
Hello,

I have developed an add-in for Excel which exposes the
IDTExtensibility2 interface in order to obtain a reference to Excel
(needed to add menu entries for initialization). Once initialized, the
add-in provides functions to be used as formulae in a worksheet.

My problem is: the OnConnection method in IDTExtensibility2 does not
get called until I edit a formula provided by the add-in.

I have registered the add-in as an automation add-in. If I register it
as a COM add-in (in the registry), functions are not available for use
as worksheet formulae.

Any ideas ?

Lars

 
Reply With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      25th Jun 2007
What is the load behavior setting? It sounds like it was configured for Load
On Demand.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)

"Lars" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I have developed an add-in for Excel which exposes the
> IDTExtensibility2 interface in order to obtain a reference to Excel
> (needed to add menu entries for initialization). Once initialized, the
> add-in provides functions to be used as formulae in a worksheet.
>
> My problem is: the OnConnection method in IDTExtensibility2 does not
> get called until I edit a formula provided by the add-in.
>
> I have registered the add-in as an automation add-in. If I register it
> as a COM add-in (in the registry), functions are not available for use
> as worksheet formulae.
>
> Any ideas ?
>
> Lars
>


 
Reply With Quote
 
Lars
Guest
Posts: n/a
 
      25th Jun 2007
On Jun 25, 1:24 pm, "Chip Pearson" <c...@cpearson.com> wrote:
> What is the load behavior setting? It sounds like it was configured for Load
> On Demand.


The registry setting for the COM add-in is set to disabled (0). I
assume it is loaded on demand because I register it as an automation
add-in.

If I set LoadBehavior to 3 (startup) in the registry I get the menu
entry at startup and a second instance of the add-in is created when I
start to edit a formula provided by the add-in.

If I do not register the add-in in the list of automation add-ins I
cannot access the formula

Lars

 
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
Applying Formulae to a worksheet which are hidden Ra Microsoft Excel New Users 11 23rd May 2009 07:16 PM
Worksheet formulae problems. Nevyn907 Microsoft Excel Misc 1 4th May 2008 05:52 PM
Using Worksheet names in formulae Louiseuk25 Microsoft Excel Misc 4 12th Feb 2008 05:52 PM
Code to change formulae on worksheet? Simon Lloyd Microsoft Excel Programming 6 24th Jul 2006 03:49 PM
How do you do cross worksheet formulae's Liam Greene Microsoft Excel New Users 2 9th Oct 2004 02:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:47 PM.