Adding a new function to Excel

rubianes

New Member
Joined
Apr 4, 2002
Messages
2
Hi all,

I've done a little macro to eliminate some items from a column, once it works fine I would like to add it to a the Excel Function list, but I have no idea how to do that.

Any help?

Thanks in advance,

Pepe
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
On 2002-04-05 06:01, rubianes wrote:
Hi all,

I've done a little macro to eliminate some items from a column, once it works fine I would like to add it to a the Excel Function list, but I have no idea how to do that.

Any help?

Thanks in advance,

Pepe

Hi Pepe,

It can't be done with a function that is called from a worksheet. A function can only return a result to the calling cell and cannot change Excel's environment.

You can have VBA functions (rather than subs) which do what you want, but you cannot insert them into the sheet. Excel will either ignore the environment changing requests, or may give an error.

Regards,
Jay
 
Upvote 0
Hi again,

All right, so my question is the following now:
This macro is going to be used frequently by diferent persons (ir means different PCs) which way is the better for the different users to acces to this new feature?
Open each time and xls file that contains the macro maybe?

Thanks again for your help ans answers

Pepe

[/quote]

Hi Pepe,

It can't be done with a function that is called from a worksheet. A function can only return a result to the calling cell and cannot change Excel's environment.

You can have VBA functions (rather than subs) which do what you want, but you cannot insert them into the sheet. Excel will either ignore the environment changing requests, or may give an error.

Regards,
Jay
[/quote]
 
Upvote 0

Forum statistics

Threads
1,213,489
Messages
6,113,954
Members
448,535
Latest member
alrossman

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top