ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I use functions that I have written in Excel formulas (https://www.excelbanter.com/excel-worksheet-functions/223234-how-do-i-use-functions-i-have-written-excel-formulas.html)

Gita_B

How do I use functions that I have written in Excel formulas
 
I have functions that I have written. i should have been able to use them in
EXcel formula but when i Use the function in the excel Sheet it is not
recognized. I get #Name Error.

Can some one help?

Regards
Gita.

Mike H

How do I use functions that I have written in Excel formulas
 
Hi,

Assuming you mean UDF's then you will get a NAME error if you put them in
the wrong place. Try this

ALT+F11 to open VB editor. Right click 'ThisWorkbook' and insert module and
put your function there.

Mike

"Gita_B" wrote:

I have functions that I have written. i should have been able to use them in
EXcel formula but when i Use the function in the excel Sheet it is not
recognized. I get #Name Error.

Can some one help?

Regards
Gita.


Gord Dibben

How do I use functions that I have written in Excel formulas
 
Are the functions in a general module in the workbook in which you are
calling them?

Should be OK in that case.

If stored in another workbook like Personal.xls you must preface the formula
as such................

=Personal.xls!myfunction(args)


Gord Dibben MS Excel MVP

On Thu, 5 Mar 2009 10:22:03 -0800, Gita_B
wrote:

I have functions that I have written. i should have been able to use them in
EXcel formula but when i Use the function in the excel Sheet it is not
recognized. I get #Name Error.

Can some one help?

Regards
Gita.




All times are GMT +1. The time now is 03:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com