Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How are excel function names in dlls/xlas resolved ?

Hi,

I am looking to know how custom function names are resolved in Excel.I have
an XLA with a number of functions in it and have used it to build a large
spreadsheet.
Once the functions were settled I built an add-in DLL in delphi to replace
the XLA
for easier deployment. The new DLL works fine when building new workbooks
but existing ones which were designed with the XLA dont work even though
the function names in the new dll are identical. I guessed that excel was
storing the
path to the xla in the sheet somewhere but even if i edit the cells or call
the
DLL's functions from new cells they fail with #NAME as if they are still
trying to
find the function name in the old XLA...

This has been very frustrating so any help would save a few grey hairs...

Thanks

Aidan
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How are excel function names in dlls/xlas resolved ?

Hi Chip,

Originally it was a DLL/XLA pair as you suggested however I am looking to
replace this with a COM add-in which exports the same function names. The
problem is workbooks built with the old XLA/DLL pair dont recognise the new
Add-In's functions even though they have the same names. A brand new workbook
will recognise the functions without any problem.

Even if I try one of my functions in a new blank cell, it wont resolve it,
it appears
to be still looking for the old XLA file. Is excel keeping a workbook wide
list of
functions used and their locations ? I'm trying to avoid having to redesign
all
our customers sheets when I ship the new DLL...

Aidan




"Chip Pearson" wrote:

You can't call functions in the DLL directly from worksheet
cells, unless the DLL was written as an XLL or COM Add-In.
Instead, you need "dummy" XLA functions that get called from the
cell and then in turn call the function in
the DLL.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Aidan Lawless" <Aidan wrote
in message
...
Hi,

I am looking to know how custom function names are resolved in
Excel.I have
an XLA with a number of functions in it and have used it to
build a large
spreadsheet.
Once the functions were settled I built an add-in DLL in delphi
to replace
the XLA
for easier deployment. The new DLL works fine when building new
workbooks
but existing ones which were designed with the XLA dont work
even though
the function names in the new dll are identical. I guessed that
excel was
storing the
path to the xla in the sheet somewhere but even if i edit the
cells or call
the
DLL's functions from new cells they fail with #NAME as if they
are still
trying to
find the function name in the old XLA...

This has been very frustrating so any help would save a few
grey hairs...

Thanks

Aidan




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
How to use the IF function to resolved more than one creteria tech1NJ Excel Worksheet Functions 4 July 31st 08 09:06 PM
Please-please-HELP - Really need this resolved - Allocation formul Chunkey Pandey Excel Worksheet Functions 4 November 24th 06 07:59 PM
add-in manager just for XLAs? [email protected] Excel Discussion (Misc queries) 3 August 14th 06 01:24 PM
Software for Distribution of XLAs ExcelMonkey Excel Programming 2 September 15th 05 09:28 PM
I think I found a bug and need to kow how to get it resolved DMDiamond Setting up and Configuration of Excel 1 January 18th 05 12:32 AM


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