Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using a user-defined function from the Personal workbook


I have created a UDF (named Interpolate) to interpolate within a user
selected table. The function works great when the function is created
in a module within the workbook that I call it. Since this seems to be
a handy function to use in the future, I tried to put it in my Personal
workbook so that I can access it in any workbook that I may be working
in. After doing this, I get the error "#NAME" when I try to use it in
another workbook. I declared the function as Public, even though I
think it does that by default. The function requires 3 inputs from the
user (Target, TableRng and ResultCol) and all other variables used to
define Interpolate are internal to the function (and declared with
Dim).

I'm assuming that I'm missing a statement which will allow this formula
to be used within any workbook. This seems like it should be a basic
question but searching this forum hasn't turned up anything yet. If
you have any advice I'd appreciate it. Thanks.


--
mworth01
------------------------------------------------------------------------
mworth01's Profile: http://www.excelforum.com/member.php...fo&userid=8991
View this thread: http://www.excelforum.com/showthread...hreadid=538657

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default Using a user-defined function from the Personal workbook

I have the same problem. My solution was to use an add-in

Die_Another_Day

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default Using a user-defined function from the Personal workbook

Precede it with Personal.xls!, such as

=Personal.xls!MyFunc(MyParam)

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"mworth01" wrote in
message ...

I have created a UDF (named Interpolate) to interpolate within a user
selected table. The function works great when the function is created
in a module within the workbook that I call it. Since this seems to be
a handy function to use in the future, I tried to put it in my Personal
workbook so that I can access it in any workbook that I may be working
in. After doing this, I get the error "#NAME" when I try to use it in
another workbook. I declared the function as Public, even though I
think it does that by default. The function requires 3 inputs from the
user (Target, TableRng and ResultCol) and all other variables used to
define Interpolate are internal to the function (and declared with
Dim).

I'm assuming that I'm missing a statement which will allow this formula
to be used within any workbook. This seems like it should be a basic
question but searching this forum hasn't turned up anything yet. If
you have any advice I'd appreciate it. Thanks.


--
mworth01
------------------------------------------------------------------------
mworth01's Profile:

http://www.excelforum.com/member.php...fo&userid=8991
View this thread: http://www.excelforum.com/showthread...hreadid=538657



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default Using a user-defined function from the Personal workbook

Cool, thanks

Die_Another_Day

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using a user-defined function from the Personal workbook


Thanks Bob. While that does obviously work, it seems a bit cumbersome
for the end user wishing to use that function. I assume that if you
knew of any other way of accomplishing the same task that you would
have mentioned it?

Also, is there a way to show the function tooltips of a UDF like the
standard Excel functions? For example, when you type =SUM( then a
yellow box appears showing you what you need to enter to make the SUM
function work - in this case it would be SUM(number1, [number2], ...).
I know that you can turn that feature off in Options, but is there a way
to make it appear for a UDF?

Thanks again.


--
mworth01
------------------------------------------------------------------------
mworth01's Profile: http://www.excelforum.com/member.php...fo&userid=8991
View this thread: http://www.excelforum.com/showthread...hreadid=538657



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Using a user-defined function from the Personal workbook

Take a look he

http://www.jkp-ads.com/Articles/DistributeMacro02.htm

Tooltips: No. But you could try and make help available in the function wizard:

http://www.jkp-ads.com/Articles/RegisterUDF00.htm

No easy stuff, though!

--
Kind regards,

Niek Otten

"mworth01" wrote in message
...
|
| Thanks Bob. While that does obviously work, it seems a bit cumbersome
| for the end user wishing to use that function. I assume that if you
| knew of any other way of accomplishing the same task that you would
| have mentioned it?
|
| Also, is there a way to show the function tooltips of a UDF like the
| standard Excel functions? For example, when you type =SUM( then a
| yellow box appears showing you what you need to enter to make the SUM
| function work - in this case it would be SUM(number1, [number2], ...).
| I know that you can turn that feature off in Options, but is there a way
| to make it appear for a UDF?
|
| Thanks again.
|
|
| --
| mworth01
| ------------------------------------------------------------------------
| mworth01's Profile: http://www.excelforum.com/member.php...fo&userid=8991
| View this thread: http://www.excelforum.com/showthread...hreadid=538657
|


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default Using a user-defined function from the Personal workbook

Only other thing I can think of is to put the functions in an add-in.

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"mworth01" wrote in
message ...

Thanks Bob. While that does obviously work, it seems a bit cumbersome
for the end user wishing to use that function. I assume that if you
knew of any other way of accomplishing the same task that you would
have mentioned it?

Also, is there a way to show the function tooltips of a UDF like the
standard Excel functions? For example, when you type =SUM( then a
yellow box appears showing you what you need to enter to make the SUM
function work - in this case it would be SUM(number1, [number2], ...).
I know that you can turn that feature off in Options, but is there a way
to make it appear for a UDF?

Thanks again.


--
mworth01
------------------------------------------------------------------------
mworth01's Profile:

http://www.excelforum.com/member.php...fo&userid=8991
View this thread: http://www.excelforum.com/showthread...hreadid=538657



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
Open workbook in user-defined folder pdberger Excel Programming 4 August 30th 05 09:39 PM
Opening workbook in user-defined folder pdberger Excel Worksheet Functions 0 August 26th 05 04:09 PM
User-defined data type; Error: Only User-defined types... tiger_PRM Excel Programming 1 July 18th 04 03:32 PM
Using linked workbook as a parameter in a user defined function Michael[_20_] Excel Programming 1 November 28th 03 05:03 PM
User-Defined Function pre-empting Built-in Function? How to undo???? MarWun Excel Programming 1 August 6th 03 09:31 PM


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