![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 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 |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
|
Quote:
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 |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 2
|
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] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|