Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Unrecognized functions in *.XLA

In an attempt to centralize my common VBA functions for several files, I
saved the function modules in a *.XLA file in my XLSTART directory. I then
went back to the original spreadsheet and deleted the function modules. Now,
even though the addin is shown as active and the functions are even
acknowleged in the 'insert function' toolbar, I only get #NAME? errors for
the addin functions show on the original spread sheet. If I open up a new
blank spreadsheet the functions work ok . Can anybody tell me what I need to
do to get the original spreadsheet to recocnize the add in functions?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 575
Default Unrecognized functions in *.XLA

Try this:

1. Edit the cell and reenter it. Sometimes works.
2. Check there is no path description in the function (e.g. it doesn't show
C:\My Documents\My Excel File.xls!FunctionName).
3. In the vbe. Try entering Application.CalculateFull in the immediate
window.

Robin Hammond
www.enhanceddatasystems.com

"rbnorth" wrote in message
...
In an attempt to centralize my common VBA functions for several files, I
saved the function modules in a *.XLA file in my XLSTART directory. I then
went back to the original spreadsheet and deleted the function modules.
Now,
even though the addin is shown as active and the functions are even
acknowleged in the 'insert function' toolbar, I only get #NAME? errors for
the addin functions show on the original spread sheet. If I open up a new
blank spreadsheet the functions work ok . Can anybody tell me what I need
to
do to get the original spreadsheet to recocnize the add in functions?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Unrecognized functions in *.XLA

a trick:

add a reference to your addin to the calling workbook's
references. (in VBE via tools/references)

It helps to give your addin's VBproject a descriptive name
like RBNfunctions

Sub AddRef()
Dim wb As Workbook
Dim vbRef As Object 'VBIDE.Reference

Debug.Assert ThisWorkbook.IsAddin

For Each wb In Workbooks
For Each vbRef In wb.VBProject.References
If vbRef.FullPath = ThisWorkbook.FullName Then Exit For
Next
If vbRef Is Nothing Then
wb.VBProject.References.AddFromFile ThisWorkbook.FullName
End If
Next

End Sub




--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


rbnorth wrote :

In an attempt to centralize my common VBA functions for several
files, I saved the function modules in a *.XLA file in my XLSTART
directory. I then went back to the original spreadsheet and deleted
the function modules. Now, even though the addin is shown as active
and the functions are even acknowleged in the 'insert function'
toolbar, I only get #NAME? errors for the addin functions show on the
original spread sheet. If I open up a new blank spreadsheet the
functions work ok . Can anybody tell me what I need to do to get the
original spreadsheet to recocnize the add in functions?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Unrecognized functions in *.XLA

Thanks both of you but neither set of suggestions helped. Im afraid Im not
familiar enough with the structure of the vbe to get Sub AddRef() to run.
Even with Macro security turned low it gave me an access denial. After
messing with it a bit its clear that the *.xla is not getting fully
incoporated into the workbook where older functions have already been
defined. I can add the full path to the function and it will run AND the path
reference dissappears, but if I copy that cell to another location, I get the
"NAME? error at the new location.

"keepITcool" wrote:

a trick:

add a reference to your addin to the calling workbook's
references. (in VBE via tools/references)

It helps to give your addin's VBproject a descriptive name
like RBNfunctions

Sub AddRef()
Dim wb As Workbook
Dim vbRef As Object 'VBIDE.Reference

Debug.Assert ThisWorkbook.IsAddin

For Each wb In Workbooks
For Each vbRef In wb.VBProject.References
If vbRef.FullPath = ThisWorkbook.FullName Then Exit For
Next
If vbRef Is Nothing Then
wb.VBProject.References.AddFromFile ThisWorkbook.FullName
End If
Next

End Sub




--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


rbnorth wrote :

In an attempt to centralize my common VBA functions for several
files, I saved the function modules in a *.XLA file in my XLSTART
directory. I then went back to the original spreadsheet and deleted
the function modules. Now, even though the addin is shown as active
and the functions are even acknowleged in the 'insert function'
toolbar, I only get #NAME? errors for the addin functions show on the
original spread sheet. If I open up a new blank spreadsheet the
functions work ok . Can anybody tell me what I need to do to get the
original spreadsheet to recocnize the add in functions?


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
Unrecognized format. Possum Excel Discussion (Misc queries) 1 July 21st 09 06:26 AM
Unrecognized format steeler86 Setting up and Configuration of Excel 0 April 21st 06 05:27 PM
unrecognized character harvdog New Users to Excel 3 December 17th 05 01:47 AM
.csv file upload - unrecognized Kiran Setting up and Configuration of Excel 0 May 27th 05 05:30 PM
unrecognized fuctions evapp etc Lee Excel Worksheet Functions 2 November 3rd 04 11:24 PM


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