Help.ShowHelp not working in Office 2019, Office 2007 OK

陈国辉 1 Reputation point

System.Windows.Forms.Help.ShowHelp(null, helpFile, HelpNavigator.TopicId, helpId);

I have to use
ShellExecute(IntPtr.Zero, new StringBuilder("Open"), new StringBuilder(helpFile), null, null, 1);
But can not goto topic Page.

Office 365 is also fail.

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
2,433 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Govert van Drimmelen 1 Reputation point

    In Excel, at least, it might be worth trying to call Application.Help instead.

    0 comments No comments

  2. julia555 6 Reputation points

    Thanks, but I hesitate to use Application.Help .

    Every time Help is called from the application, Application.Help opens a new Help window.
    And when user closes the application, he has to close all Help windows manually.

    HtmlHelp () doesn't have these issues.

    Call HtmlHelp(0, ....HelpName, &H12, 0) closes help file automatically