Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 61
Default Is UDF the way to go? Is there a better way?

I want to write a bunch of functions (in Excel 2007) that can be
called from any worksheet and behave (as much as possible) exactly
like built-in functions.

I want the functions to have these properties:

1. Can be called from any worksheet (=MyFun(B4,C2,10, ...)).

2. Will behave exactly like built-in functions, namely:

a. Will show up on the function pick list. When I type "=my", MyFun
will be one of the choices.

b. Will prompt for the arguments as soon as the "(" is entered.

3. Can call any other function without qualifiers. That is, MyFun can
call the LN function without having to prefix it with

x = 2 * Application.WorksheetFunction.ln(y)

I have created an Add-In module and added a few functions to it. They
work, but they do not behave like built-in functions.

I think this worked in Excel 2003.
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



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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"