Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default UDF shows #NAME? when moved from XLA to XLL

I had some functions written in an XLA, and used in the spreadsheet.
Later I re-wrote them in an XLL, and gave them the same names as in
XLA.

When I uncheck the old XLA addin and load the new XLL, Excel is not
able to find
the UDF in new add-in, and shows a #NAME?

However, in any new workbook, the new function works ok. Only the old
workbook
somehow still expects to resolve these functions through XLA.

if anyone have any ideas, I'd greatly appreciate it.

thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default UDF shows #NAME? when moved from XLA to XLL

I've recently tried setting a reference to an XLA within the VBE. It was
pretty slick. I wonder if that will work.
--
HTH,
Barb Reinhardt




"mobigital" wrote:

I had some functions written in an XLA, and used in the spreadsheet.
Later I re-wrote them in an XLL, and gave them the same names as in
XLA.

When I uncheck the old XLA addin and load the new XLL, Excel is not
able to find
the UDF in new add-in, and shows a #NAME?

However, in any new workbook, the new function works ok. Only the old
workbook
somehow still expects to resolve these functions through XLA.

if anyone have any ideas, I'd greatly appreciate it.

thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default UDF shows #NAME? when moved from XLA to XLL

I don't use the xll stuff, but I have had the same problem when I create a UDF
in one workbook, then move that UDF to an addin. (I've learned to develop the
UDF in a workbook that doesn't matter!)

(And you have removed that UDF from the addin, right????)

This might be easier if you convert your Addin to a normal workbook.

Inside the VBE
ctrl-r to see the project explorer
select ThisWorkbook
Hit F4 to see the properties
change the IsAddin property to False

Then back to excel where you should be able to activate a worksheet in your
addin/workbook.

Say your UDF's name is =myFunc().
Create a new name in your addin -- call it myFunc
Then delete that name.

Then select all the cells
Edit|replace
what: =
with: =
replace all

After forcing the recalc, excel should see the UDFs in the XLL (I hope!).

Then change your workbook back to an addin and save it.


mobigital wrote:

I had some functions written in an XLA, and used in the spreadsheet.
Later I re-wrote them in an XLL, and gave them the same names as in
XLA.

When I uncheck the old XLA addin and load the new XLL, Excel is not
able to find
the UDF in new add-in, and shows a #NAME?

However, in any new workbook, the new function works ok. Only the old
workbook
somehow still expects to resolve these functions through XLA.

if anyone have any ideas, I'd greatly appreciate it.

thanks


--

Dave Peterson
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
Referencing a cell even if its contents are moved moved/replaced Darren Excel Discussion (Misc queries) 7 May 22nd 10 08:43 PM
Result shows correct answer but cell shows 0 Lise Excel Discussion (Misc queries) 1 March 2nd 10 01:23 PM
worksheet to be moved jayesh trivedi Excel Discussion (Misc queries) 1 February 8th 09 10:18 AM
cell shows 20. Formula shows 20. why not 540/27 griswold Excel Worksheet Functions 2 August 12th 05 05:56 PM
Doesn't work when moved. Lee Hunter Excel Programming 6 September 9th 04 09:47 PM


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