Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default User Defined Functions in Automation Addin behave differently in 2

I have created an automation addin in C# .NET and have a shim dll for it. The
shim dll has all the User Defined methods in it that calls the appropriate
methods in the .NET assembly.

The problem that I am facing is related to Excel 2007.
In Excel 2003,
1. Add a new shape to a worksheet
2. Insert Function SUM. The Function arguments dialog comes up
3. click on the newly inserted shape instead of a cell
Note: Nothing happens and no cell value is entered automatically in the
argument box

Now in Excel 2007,
1. Insert a new shape
2. Formulas Ribbon Tab Insert Function SUM. Function Arguments dialog
comes up
3. Click on the newly inserted shape
Note that now an error dialog is displayed saying "The formula you typed
contains an error"

This dialog comes up for a predefined function (SUM). If I select my
function from the list in-place of SUM, the error dialog is not displayed and
the Function Argument dialog just vanishes. The cell then shows an error
smarttag.

Is there something that needs to be put into the SHIM dll for each function?
Like an attribute or something that will display this error dialog. OR maybe
some special value that is returned by the method to tell that the argument
has generated an error.

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
VB 2005 User Defined Function (via Automation Add-in) Generates #V FrankJO Excel Programming 12 November 7th 08 10:15 PM
How map types when call functions defined in XLL AddIn from VBA Ravil Excel Programming 1 March 23rd 06 10:49 PM
How to show help for functions defined in addin worksheets AMD via OfficeKB.com Excel Programming 5 March 3rd 06 02:34 PM
addIn functions in automation nicgendron Excel Programming 1 July 14th 05 10:35 AM
User Defined Addin - Urgent Please Help! Kirit Patel Excel Programming 4 October 27th 03 06:35 PM


All times are GMT +1. The time now is 07:07 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"