Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default UDF doesn't work in old worksheets

Hi,
I had different workbooks all with the UDF "Calculate".
I learned about xla and thought it would be nice to put the function in an
xla in the XLstart folder.
On a new workbook the function works fine. But on the orginal (where I
deleted the Calculate Function) I get the #NAME? error.
The only difference I could find is that a new workbook has the xla listed
in the links. In the old workbook Links is grayed out in the Edit menu, so
there are no links available.

Is this Normal?

In both files the function is listed under InsertFunctionUser Defined.
When I go tho VBA editor the xla is there.

What do I do?

THanks



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default UDF doesn't work in old worksheets

Make sure you add in the addin
--
Gary's Student


"BartDesc" wrote:

Hi,
I had different workbooks all with the UDF "Calculate".
I learned about xla and thought it would be nice to put the function in an
xla in the XLstart folder.
On a new workbook the function works fine. But on the orginal (where I
deleted the Calculate Function) I get the #NAME? error.
The only difference I could find is that a new workbook has the xla listed
in the links. In the old workbook Links is grayed out in the Edit menu, so
there are no links available.

Is this Normal?

In both files the function is listed under InsertFunctionUser Defined.
When I go tho VBA editor the xla is there.

What do I do?

THanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default UDF doesn't work in old worksheets

THanks
It doesn't help.
Reading around I thought that was normally not necessary, as it is
automaticcaly loaded when it's in XLstart.
Even mo in the newer workbooks it isn't listed as an addin and it does
work.
Even mo In other older workbooks I don't have the problem: just those
which previously had the function (which that I deleted, when the function
was placed in xla file).
Bart


"Gary''s Student" wrote:

Make sure you add in the addin
--
Gary's Student


"BartDesc" wrote:

Hi,
I had different workbooks all with the UDF "Calculate".
I learned about xla and thought it would be nice to put the function in an
xla in the XLstart folder.
On a new workbook the function works fine. But on the orginal (where I
deleted the Calculate Function) I get the #NAME? error.
The only difference I could find is that a new workbook has the xla listed
in the links. In the old workbook Links is grayed out in the Edit menu, so
there are no links available.

Is this Normal?

In both files the function is listed under InsertFunctionUser Defined.
When I go tho VBA editor the xla is there.

What do I do?

THanks



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default UDF doesn't work in old worksheets

Saved from a previous post for the same kind of problem--the UDF was in a
workbook, then moved to an Addin.

After I moved the code from one workbook's project to the other and saved both
files (one as an addin), I did this in the "regular" workbook (.xls) (with the
..xla still open).

Insert|Name|define
myFunc
(refer to any cell)
Add

Then I deleted that name.
insert|name|define
myfunc
delete

Then I did edit|replace
what: = (equal sign)
with: = (equal sign)
replace all

Excel was smart enough to reevaluate this function from the xla.


========
myFunc will be the name of your UDF.

BartDesc wrote:

THanks
It doesn't help.
Reading around I thought that was normally not necessary, as it is
automaticcaly loaded when it's in XLstart.
Even mo in the newer workbooks it isn't listed as an addin and it does
work.
Even mo In other older workbooks I don't have the problem: just those
which previously had the function (which that I deleted, when the function
was placed in xla file).
Bart

"Gary''s Student" wrote:

Make sure you add in the addin
--
Gary's Student


"BartDesc" wrote:

Hi,
I had different workbooks all with the UDF "Calculate".
I learned about xla and thought it would be nice to put the function in an
xla in the XLstart folder.
On a new workbook the function works fine. But on the orginal (where I
deleted the Calculate Function) I get the #NAME? error.
The only difference I could find is that a new workbook has the xla listed
in the links. In the old workbook Links is grayed out in the Edit menu, so
there are no links available.

Is this Normal?

In both files the function is listed under InsertFunctionUser Defined.
When I go tho VBA editor the xla is there.

What do I do?

THanks




--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Thankx!!





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
Getting embeded Excel worksheets with macros in Word to work [email protected] Excel Discussion (Misc queries) 3 June 20th 06 01:56 PM
Sumif Across multiple worksheets Giantrobot Excel Worksheet Functions 2 June 15th 06 08:28 PM
Summarizing field quantities for specific records Charleswdowd Excel Worksheet Functions 0 June 2nd 06 01:12 AM
Is it possible to permanently group worksheets bennyob Excel Discussion (Misc queries) 1 October 31st 05 02:43 PM
How to copy the work sheets from different workbooks into one? Sesh Excel Discussion (Misc queries) 1 April 15th 05 06:03 PM


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