Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Adding a new function to Excel

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #2
    MrExcel MVP Jay Petrulis's Avatar
    Join Date
    Mar 2002
    Location
    Chicago, IL USA
    Posts
    2,040
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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

  3. #3
    New Member
    Join Date
    Apr 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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]

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •