ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Using a custom function as a spreadsheet function (https://www.excelbanter.com/excel-programming/396883-using-custom-function-spreadsheet-function.html)

Nash[_2_]

Using a custom function as a spreadsheet function
 
I'd like to use a function that I wrote as a spreadsheet function,
i.e. type "=Deg2DegDec(A1,B1,C1)" in a cell in spreadsheet and get the
result.
I saw a post by Rick Rothstein in one of the previous threads that
says you should put your function in a module. Mine is in Module1 in
Personal.xls, and that doesn't do the trick.
What should I do (step by step, please)?

TIA,
Nash


papou[_2_]

Using a custom function as a spreadsheet function
 
Hello Nash
It's pretty straightforward:
Insert, Function, Custom and double-click on your UDF
Place arguments required and validate with OK.

Apart from that:
Has your function worked before?
Can you post the code?

HTH
Cordially
Pascal


"Nash" a écrit dans le message de news:
...
I'd like to use a function that I wrote as a spreadsheet function,
i.e. type "=Deg2DegDec(A1,B1,C1)" in a cell in spreadsheet and get the
result.
I saw a post by Rick Rothstein in one of the previous threads that
says you should put your function in a module. Mine is in Module1 in
Personal.xls, and that doesn't do the trick.
What should I do (step by step, please)?

TIA,
Nash




Nash[_2_]

Using a custom function as a spreadsheet function
 
Thanks!
Just what I needed. The function itself is quite simple, subtracting
two angles from each other. It works, of course, I just wanted to use
it as a spreadsheet function instead of doing it via some command
button or something like that.

Nash

On Sep 5, 1:14 pm, "papou" wrote:
Hello Nash
It's pretty straightforward:
Insert, Function, Custom and double-click on your UDF
Place arguments required and validate with OK.

Apart from that:
Has your function worked before?
Can you post the code?

HTH
Cordially
Pascal




All times are GMT +1. The time now is 01:24 PM.

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