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 Excel Addin Function gives #NAME? Errors

Running Microsoft Office 2003 SP1 on Windows XP.

I have an Excel add-in function XYZ (Name changed to protect the guilty!)
that takes three numbers in and returns a numeric result. Others in my group
have installed the add-in on their machines and routinely use and develop
workbooks that refer to this function in cell formulas. The .xla file
containing the code resides in their C:\Program Files\Microsoft Office
2003\OFFICE11\Library directory. (In actual fact, there is a set of four
related functions, all of which appear to exhibit the same behaviour)

Sometimes, we use this function in one or more cells inside an iterative
loop in our calculations (Iterations turned on in the Tools/Options dialog
Calculation tab). Occasionally we run into problems where the function does
not seem to be recognized, even though the add-in is listed in the
Tools/Addins list, and is checked. I'm looking at an example right now. The
symptoms are as follows:

1. The cells inside the iterative loop, and cells that refer to them, all
show "#NAME?" instead of a result. These did not appear while the workbook
was being created, only after it was saved (on another machine) and reloaded
(on my machine).
2. If I enter a formula in a previously-empty cell in this workbook, such as
"=XYZ(1,2,3)", the result appears as "#NAME?"
3. If I open a new workbook in the same Excel session and enter the same
formula in an empty cell in the new workbook it works as expected.
4. I can use the formula builder ('fx' button) in both workbooks. In both
cases, the function XYZ IS listed in the 'User Defined Functions' list, and
its syntax is displayed correctly. As I enter the arguments (hard-wired
numbers, no cell references) in the problem workbook, the dialog box never
displays a value for the result, even after I've entered a value for the
final argument. And when I click on the OK button, the dialog box closes,
leaving "#NAME?" in the cell. In the new (clean) workbook, the dialog
proceeds identically, except that a value (correct) displays for the result
after I've entered the final argument, and the cell shows the same, correct,
result after the dialog box closes.

I've tried un-checking the name in the Add-Ins list, closing and re-opening
Excel in that state, and then re-checking the item. I tried changing the name
of the .xla file and switching to that copy of the file, and I've copied the
file into the add-ins directory in my settings, as Microsoft suggests in some
of its documentation. None of these actions led to any change in behaviour.
On occasion, I've received a warning to the effect that "a file with the same
name already exists at this location, do you want to overwrite it?" as I
checked the add-in in the list. (What am I overwriting here, I ask myself!) I
have tried answering both Yes and No, but there seems to be no difference.

Can anyone suggest what is happening here, and what I might try to solve the
problem? Any suggestions/hints/help will be gratefully received.
 
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
custom addin gives #name? errors bh1 Excel Worksheet Functions 4 February 5th 08 06:46 PM
Excel Throwing Circular Errors When No Errors Exist MDW Excel Worksheet Functions 1 August 10th 06 02:15 PM
Selection is set to Nothing on second run of a AddIn function Ben Crinion Excel Programming 1 October 12th 04 02:07 PM
Remove Excel AddIn from AddIn List !! Help carl Excel Programming 2 December 8th 03 03:36 PM
excel show #NAME? when use a addin function Ronald Dodge Excel Programming 0 September 8th 03 06:22 PM


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