+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 error when adding custom help file to user defined function

  1. #1
    Registered User
    Join Date
    07-19-2008
    Location
    Cheyenne, WY
    Posts
    2

    Excel 2007 error when adding custom help file to user defined function

    I created a function in VB and wanted to add a help file, so that when you
    pull the function up in "insert function" you could click on "help with this
    function" it pulls up the function. After some digging I discovered how to
    do this:

    right click "VBAProject (MyAdd-in)"
    VBAProject Properties...
    Help file name (browse to help file)
    assign context id

    Then, in the code window,
    bring up object explorer (F2),
    navigate to my function,
    right click, select "Properties...",
    and enter context id assigned above.
    (Note at this point that the "Help File" field, which can't be edited,
    contains the same file location entered in the VBAProject Properties above...)

    save project, flip back to excel, insert function, find mine, click "help
    with this function" and viala it works.

    Now the weirdness starts.

    When I close and reopen excel, try to click "help with this function" again
    and I get this error:

    "Cannot open the file: mk:MSITStore:C:\Program Files\Microsoft
    Office\Office12\????."

    So I try everthing I can find about this error (.ocx files, reregistering,
    MJ's Tools, etc.) and nothing works.

    When I navigate back to VBAProject Properties, the help file address is
    still fine.
    However when I go to the properties for my function, the "Help File" field
    now reads "????" instead of the help file from VBAProject Properties.

    So I go back to VBAProject Properties and enter "test" in the help file
    field. I check my function and "Help File" now reads "test". I save and go
    back to excel. Try clicking the link and low and behold I get this error:

    "Cannot open the file: mk:MSITStore:C:\Program Files\Microsoft
    Office\Office12\test"

    So when I reload excel it is corrupting the address for the help file for my
    function and apparently the only way to resolve it is to load and resave in
    VBA everytime I open excel (not exactly convenient)

    So how does one get word to MS that there is something screwed up in excel?

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,615
    sabotuer99

    Read the rules about Cross Posting.
    You have asked the same question in MrExcel.

  3. #3
    Registered User
    Join Date
    07-19-2008
    Location
    Cheyenne, WY
    Posts
    2
    My bad, here are links to everywhere I have posted this question:

    http://www.microsoft.com/office/comm...r=US&sloc=&p=1
    http://www.microsoft.com/office/comm...=en-us&m=1&p=1
    http://www.microsoft.com/office/comm...r=US&sloc=&p=1
    http://www.microsoft.com/office/comm...r=US&sloc=&p=1
    http://www.mrexcel.com/forum/showthread.php?t=331270
    http://www.excelforum.com/showthread.php?t=650397

  4. #4
    Registered User
    Join Date
    07-04-2009
    Location
    San Diego
    MS-Off Ver
    CA
    Posts
    4

    Re: Excel 2007 error when adding custom help file to user defined function

    Did you ever figure out how to solve this problem?

    Thanks.

    Pvberg

+ 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