![]() |
Opening help file with context number
Hi
I am using the shell command to open a help file, something like: Shell "hh c:\doc\myhelp.chm", 1 I would now like to open the help file at a specific topic ID (or context number). Any suggestions, Thanks in advance Martien |
Opening help file with context number
Martien,
If you have a properly compiled help file this is easy. I have help files built with Helpmatic Pro (relatively easy to use and good value shareware). These are different to chm files I believe but I can't really remember the research I did on this at the time when I settled on my current solution. On a form I would have something like this Private Sub cmdHelp_Click() XHelp 32 'launch topic 32 End Sub 'in a general module Public Sub XHelp(nContextID As Integer) Dim strHelpFile As String strHelpFile = ThisWorkbook.Path & "\EFA USER TOOLS.hlp" Application.Help strHelpFile, nContextID End Sub Robin Hammond www.enhanceddatasystems.com "Martien Janssen" wrote in message ... Hi I am using the shell command to open a help file, something like: Shell "hh c:\doc\myhelp.chm", 1 I would now like to open the help file at a specific topic ID (or context number). Any suggestions, Thanks in advance Martien |
Opening help file with context number
Martien,
I am using the shell command to open a help file, something like: Shell "hh c:\doc\myhelp.chm", 1 I would now like to open the help file at a specific topic ID (or context number). See the following page for two ways to open a specific help topic from the command line. http://helpware.net/FAR/far_faq.htm#HHEXEParams If you need instructions on how to set up the help file to use context IDs, the best places to look a http://www.mvps.org/htmlhelpcenter/h...s.html#mapping http://helpware.net/htmlhelp/how_to_context.htm -- Pete (Microsoft Help MVP) |
Opening help file with context number
Thanks Robin for your reply. There is one problem though. Application.Help does not seem to work with chm files, at least not with mine (which I created with Help&Manual, not freeware or shareware but quite recommendable). I therefore use pete solution with a shell command launching the hh.exe command needed for the chm files. Thanks again, Martien *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
All times are GMT +1. The time now is 11:27 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com