Consulting

Results 1 to 6 of 6

Thread: Solved: User Help Files for Function Arguments

  1. #1

    Solved: User Help Files for Function Arguments

    When working with functions, Excel allows the user to access help files. For example, if you are working with the Sum function, you would be able to select the 'Function Arguments' to get to a help window.

    This window provides information about the Sum function.

    But for user functions this dialog is useless.

    How do you write a help file and provide the information like microsoft does? Is there an easy way to do so or do you need special software that I'm not allowed to install here at work?

  2. #2
    VBAX Master
    Joined
    Jun 2007
    Location
    East Sussex
    Posts
    1,110
    Location
    As far as I know you have to create HTML help files - usually compiled CHM files (HTML Help workshop is the MS software usually used I believe). You then have to associate these with the functions.
    Regards,
    Rory

    Microsoft MVP - Excel

  3. #3
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    This came from Walkenbach's Power Programming book. To parapharase,

    If you open the Macros dialog box and type the function's name into the box labeled "Macro name", clicking the Options button will allow you to enter a description that will be seen in the Insert Function box.


    My thought is that descriptive argument variable names are a cheap (i.e. good) way to provide help.
    Last edited by mikerickson; 12-28-2007 at 07:50 AM.

  4. #4
    VBAX Master
    Joined
    Jun 2007
    Location
    East Sussex
    Posts
    1,110
    Location
    There's a thread on CHM files and UDFs here and an article on registering functions here.
    HTH
    Regards,
    Rory

    Microsoft MVP - Excel

  5. #5
    Thanks Rory. Registering Functions link http://www.jkp-ads.com/Articles/RegisterUDF00.htm was perfect! That did exactly what I needed it to do and it is EASY! I liked it so much I sent an email to the author.

    It isn't exactly what I was looking for but it does what I need even better than what I was trying to do!

  6. #6
    VBAX Master
    Joined
    Jun 2007
    Location
    East Sussex
    Posts
    1,110
    Location
    Jan Karel's site has a lot of great articles on it - I'm sure he'll be glad of the feedback.
    Regards,
    Rory

    Microsoft MVP - Excel

Posting Permissions

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