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.
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.
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.
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.
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.