Consulting

Results 1 to 16 of 16

Thread: Guide for VBA functions

  1. #1
    VBAX Mentor ALe's Avatar
    Joined
    Aug 2005
    Location
    Milan
    Posts
    383
    Location

    Guide for VBA functions

    Hello!

    I was wondering how it is possible to use the Functions Guide of Excel for the functions I create in VBA.

    Thanks

  2. #2
    Knowledge Base Approver
    The King of Overkill!
    VBAX Master
    Joined
    Jul 2004
    Location
    Rochester, NY
    Posts
    1,727
    Location
    Hi ALe,

    I'm assuming you're referring to the dialog that prompts users for input. To use this for any UDF that you make, simply enter =functionname( in a cell, and press control-a.

    As an fyi, if it is the first time you're using the function from the worksheet, if you enter the name in caps, ie. =FUNCTIONNAME( and press control-a, the function will always be capitalized for each future use of it.

    Matt

  3. #3
    VBAX Mentor ALe's Avatar
    Joined
    Aug 2005
    Location
    Milan
    Posts
    383
    Location
    Thanks Mark, I was referring to that dialog.
    What I'd like to have is a description of the variables of the function and the preview result as excel shows for a normal function (like sum, average,...)

  4. #4
    VBAX Mentor ALe's Avatar
    Joined
    Aug 2005
    Location
    Milan
    Posts
    383
    Location
    sorry, I read mark instead of mvidas

  5. #5
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    You need to create that on your own. Check out this site by MS MVP Laurent Longre ...

    http://xcell05.free.fr/


    (Hey Matt!)

  6. #6
    Knowledge Base Approver
    The King of Overkill! VBAX Master
    Joined
    Jul 2004
    Location
    Rochester, NY
    Posts
    1,727
    Location
    Hi Zack! Nice link, I'm going to keep that one handy

  7. #7
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    I've got an add-in by Graham Paramore (parry) which he utilizes it. I've got to upload it to the server (had it a month ago, but lost the emails in the server switch) as he graciously agreed to let me publish it here at VBAX. It's a WONDERFUL add-in. I'll be making a post about it soon.

  8. #8
    VBAX Mentor ALe's Avatar
    Joined
    Aug 2005
    Location
    Milan
    Posts
    383
    Location
    This site is wonderful and the addin is exactly what I was looking for. Thanks a lot fyrefytr!!

  9. #9
    Administrator
    VP-Knowledge Base VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Quote Originally Posted by ALe
    Hello!

    I was wondering how it is possible to use the Functions Guide of Excel for the functions I create in VBA.

    Thanks
    Must be misunderstanding the question but isn't it as simple as:
    • To use your User Defined function, click Insert Function on the Insert menu.
    • In the Insert Function dialog box, click User Defined under Categories, and then click (Name of your function) under Select a function. Click OK.
    Am I missing something here?
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  10. #10
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Joost, click on the link I provided, then click on the 'English' link. It shows a screen shot of (what I think) the OP is asking for.

  11. #11
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Quote Originally Posted by firefytr
    Joost, click on the link I provided, then click on the 'English' link. It shows a screen shot of (what I think) the OP is asking for.
    Ok I must be totaly off now!

    I'm talking about the same thing I think? Using a UDF from the Function Dialog to insert it from that Dialog?

    Must be me.....
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  12. #12
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Ok I think I got it now testing that Add-in.

    The Op wants custom help text with his function to aid in using them!

    I'm such a slow nimwith at times
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  13. #13
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Add-in is up! Check out the Cool Tools page for Parry's Format Function add-in.

  14. #14
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Quote Originally Posted by firefytr
    Add-in is up! Check out the Cool Tools page for Parry's Format Function add-in.
    Sweet!
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  15. #15

  16. #16
    VBAX Mentor ALe's Avatar
    Joined
    Aug 2005
    Location
    Milan
    Posts
    383
    Location
    Great firefytr, I'll check the add-in! I'm marking this thread as solved. Thanks a lot!

Posting Permissions

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