harleygnuya
New Member
Windows 10 Pro x 64, Excel from Office 365 version 1705 (Build 8201.2200)
I have written some macros and have some userforms. I've set HelpContextIDs for the controls and specified a .chm as my project's help file.
Action: Activate a control in the userform, then press the F1 key.
Expected behavior: My help (.chm) file should open to the correct page corresponding to the control.
Actual behavior: My browser opens up and displays the following page: https://support.microsoft.com/en-us...dows-based-programs-feature-not-included-or-h
which is a standard page that is displayed when Excel thinks one is trying to use a .hlp file instead of a .chm file for help.
This occurs whenever I try to access help through Excel's help system, meaning when I count on Excel to invoke help itself. That includes not only the way I tried above, but also setting the userform's WhatsThisButton and WhatsThisHelp properties to True. Again, instead bringing up my help file, it goes off to that web page.
I am able to invoke my help file by putting a button for that purpose on the control and in its Click event handler calling Application.Help. This works just fine, so I know my help file is good.
I've even tried setting Application.OnKey for the F1 key to call a Sub that makes the Application.Help call, but Excel captures the F1 press event before I can trap it, and, again, Excel sends me off to that web page. I then tried setting the OnKey for Shift+F1, but Excel captures even that and off it goes. (Or else my OnKey call isn't taking.)
Any suggestions or help would be appreciated.
Thanks
I have written some macros and have some userforms. I've set HelpContextIDs for the controls and specified a .chm as my project's help file.
Action: Activate a control in the userform, then press the F1 key.
Expected behavior: My help (.chm) file should open to the correct page corresponding to the control.
Actual behavior: My browser opens up and displays the following page: https://support.microsoft.com/en-us...dows-based-programs-feature-not-included-or-h
which is a standard page that is displayed when Excel thinks one is trying to use a .hlp file instead of a .chm file for help.
This occurs whenever I try to access help through Excel's help system, meaning when I count on Excel to invoke help itself. That includes not only the way I tried above, but also setting the userform's WhatsThisButton and WhatsThisHelp properties to True. Again, instead bringing up my help file, it goes off to that web page.
I am able to invoke my help file by putting a button for that purpose on the control and in its Click event handler calling Application.Help. This works just fine, so I know my help file is good.
I've even tried setting Application.OnKey for the F1 key to call a Sub that makes the Application.Help call, but Excel captures the F1 press event before I can trap it, and, again, Excel sends me off to that web page. I then tried setting the OnKey for Shift+F1, but Excel captures even that and off it goes. (Or else my OnKey call isn't taking.)
Any suggestions or help would be appreciated.
Thanks