Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default User Definined Category

There is no "user defined" category in my insert function window. I
have created a few user defined functions but am unable to access
them. I always get a NAME error.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default User Definined Category

Have you stored them in a standard code module?

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"K_urac" wrote in message
ups.com...
There is no "user defined" category in my insert function window. I
have created a few user defined functions but am unable to access
them. I always get a NAME error.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 663
Default User Definined Category

The following information is already available in the on-line help of
Microsoft Excle.

Making your custom functions available anywhere

To use a custom function, the workbook containing the module in which you
create the function must be open. If that workbook is not open, you get a
#NAME? error when you try to use the function. Even if the workbook is open,
if you use the function in a different workbook, you must precede the
function name with the name of the workbook in which the function resides.
For example, if you create a function called Discount in a workbook called
Personal.xls, and you call that function from another workbook, you must
write =personal.xls!Discount(), not simply =Discount().

You can save yourself some keystrokes (and possible typing errors) by
selecting your custom functions from the Insert Function dialog box. (Your
custom functions appear in the User Defined category.) An easier way to make
your custom functions available at all times is to store them in a separate
workbook and then save that workbook as an add-in (an XLA file) in your
XLStart folder. (The XLStart folder is a subfolder of the folder containing
your Excel files. When you start Excel, the program opens any documents it
finds in XLStart.) To save a workbook as an add-in, choose File, Save As (or
File, Save). Then choose Microsoft Excel Add-in from the Files Of Type list.

If your user-defined functions are stored in an XLA file that is present in
memory, you don't have to specify the name of that file when you call a
function. If the XLA file is saved in your XLStart folder, it will be present
in memory whenever you run Excel.

Challa Prabhu

"K_urac" wrote:

There is no "user defined" category in my insert function window. I
have created a few user defined functions but am unable to access
them. I always get a NAME error.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default User Definined Category

Is there a way that a user defined function can reside within the file itself?

If i email an excel sheet to another person and it contains user defined
functions, they don't work for the recipient. Is there a way round this?
--
Andrew


"challa prabhu" wrote:

The following information is already available in the on-line help of
Microsoft Excle.

Making your custom functions available anywhere

To use a custom function, the workbook containing the module in which you
create the function must be open. If that workbook is not open, you get a
#NAME? error when you try to use the function. Even if the workbook is open,
if you use the function in a different workbook, you must precede the
function name with the name of the workbook in which the function resides.
For example, if you create a function called Discount in a workbook called
Personal.xls, and you call that function from another workbook, you must
write =personal.xls!Discount(), not simply =Discount().

You can save yourself some keystrokes (and possible typing errors) by
selecting your custom functions from the Insert Function dialog box. (Your
custom functions appear in the User Defined category.) An easier way to make
your custom functions available at all times is to store them in a separate
workbook and then save that workbook as an add-in (an XLA file) in your
XLStart folder. (The XLStart folder is a subfolder of the folder containing
your Excel files. When you start Excel, the program opens any documents it
finds in XLStart.) To save a workbook as an add-in, choose File, Save As (or
File, Save). Then choose Microsoft Excel Add-in from the Files Of Type list.

If your user-defined functions are stored in an XLA file that is present in
memory, you don't have to specify the name of that file when you call a
function. If the XLA file is saved in your XLStart folder, it will be present
in memory whenever you run Excel.

Challa Prabhu

"K_urac" wrote:

There is no "user defined" category in my insert function window. I
have created a few user defined functions but am unable to access
them. I always get a NAME error.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default User Definined Category

You can store the UDF in a general module in the workbook in question.

Alt + F11 then CTRL + r.

Select you workbook/project and InsertModule.

Place the UDF in that module and Save the workbook.

The UDF will stay with the workbook.


Gord Dibben MS Excel MVP

On Wed, 21 Feb 2007 06:40:01 -0800, slymeat .(donotspam)
wrote:

Is there a way that a user defined function can reside within the file itself?

If i email an excel sheet to another person and it contains user defined
functions, they don't work for the recipient. Is there a way round this?


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
start a macro or procedure based on user putting an x in a cell mathew Excel Discussion (Misc queries) 0 August 17th 06 06:21 PM
Start Macro after user selects a choice from a pick list mathew Excel Discussion (Misc queries) 2 August 17th 06 03:28 PM
Final days for regular registration - London Excel User Conference - July 19-21 Damon Longworth Excel Discussion (Misc queries) 0 June 9th 06 12:29 PM
Final days for regular registration - London Excel User Conference - July 19-21 Damon Longworth Excel Worksheet Functions 0 June 9th 06 12:29 PM
Automatic Sum by Category (SumIf extension) ezuk Excel Discussion (Misc queries) 1 August 12th 05 06:58 AM


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