Opening help file with context number

  • Thread starter Thread starter Martien Janssen
  • Start date Start date
M

Martien Janssen

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
 
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,
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 are:

http://www.mvps.org/htmlhelpcenter/htmlhelp/hhtutorials.html#mapping
http://helpware.net/htmlhelp/how_to_context.htm
 
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
 
Back
Top