+ Reply to Thread
Results 1 to 3 of 3

How to display help text in the Insert function wizard (Excel)

Hybrid View

  1. #1
    Registered User
    Join Date
    05-11-2007
    Posts
    1

    How to display help text in the Insert function wizard (Excel)

    Hi,

    I am writing an add-in for MS Excel. Upon installation the Add-in adds excel cell formulas (User Defined Functions) in a category. It also adds menu items to the Excel. Here are the technical details of the development:
    -- Using Shared Add-in (under Extensibility) project under VS .net 2005. Select only "Microsoft Excel" in the "Select an Application Host" step of the Add-in wizard.
    -- Language - C#

    The project creates the file Connect.cs with GuidAttribute. Looks like this:
    [GuidAttribute("E79BD972-0295-420E-8E42-038685177BDF"), ProgId("MyAddin1.Connect")]

    public class Connect : Object, Extensibility.IDTExtensibility2

    To add additional User Defined Functions (UDF), I add public functions in the above connect class like this:

    public string ExecuteQuery(System.String strQuery, [Optional] object optionalServerIp, [Optional] object optionalPort, [Optional] object optionalPollInterval)

    {

    //start processing here asynchronously

    return "Executing...";

    }

    In order to add this function as excel cell function I create an entry in the registry like this:

    HKEY_CLASSES_ROOT\CLSID\{E79BD972-0295-420E-8E42-038685177BDF}\Programmable

    where Programmable is the key that is created (no value).

    After installation (which can be done just by building on the developer machine or by creating a setup project using vs), the cell function can be called using the function wizard as follows:

    Open the Insert Function wizard by clicking on the fx button in the function bar.

    Select the newly added category "MyAddin1.Connect" and select the function "ExecuteQuery" under it. This will open up a Function Arguments dialog like this -

    <image here>

    What I want to do (and not able to figure out) is -

    -- Replace the text "No help available" with my function description on ExecuteQuery.

    -- Display the parameter help. "StrQuery" in the lower half should be displayed as "StrQuery is the text string which represents a query"

    -- Help on this function should be linked to some file (ex. .chm file).

    Please let me know if there is some way to achieve the above. Its a little urgent for me and I am stuck on this.

    Pls let me know if you need any other details to assist you.

    Thanks,

    Sudhakar,

    Pune, India

    9890874053

  2. #2
    Registered User
    Join Date
    01-26-2009
    Location
    Cape Town
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: How to display help text in the Insert function wizard (Excel)

    Hi Sudhakar,

    Any luck with this one? I'm also trying to add help on the Excel fx dialog for a function. So far no luck in getting any help.

    Regards,
    Daniel

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: How to display help text in the Insert function wizard (Excel)

    See this earlier post
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1