open hlp file at special topic

open hlp file at special topic

Anonymous
Not applicable
381 Views
4 Replies
Message 1 of 5

open hlp file at special topic

Anonymous
Not applicable
I have a vba project with several Forms. On each of them I want to have a
button, which opens my .hlp file and jumps to a special topic (id) in it.
Tried so far
Shell "winhlp32.exe " & helpfilename, vbNormalFocus
But this opens the helpfile always at the start page. Changing the
helpcontextid in the project properties had no effect.
Who can help?
TIA,
Kathrin
0 Likes
382 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Set up the help file for each form as a completely stand alone help
file.
This you can call from a help button using the common dialog control.
Add a contents file (.cnt) to your main help file. In the contents file
add a
reference to the starting topic in the form help files. When your main
help
file opens the form help files will appear as if they are actually
located in
the main file.

example: Doors=frm_draw_doors main topic@draw_doors.hlp

Tom Craft

Kathrin Bombrowski wrote:

> I have a vba project with several Forms. On each of them I want to have a
> button, which opens my .hlp file and jumps to a special topic (id) in it.
> Tried so far
> Shell "winhlp32.exe " & helpfilename, vbNormalFocus
> But this opens the helpfile always at the start page. Changing the
> helpcontextid in the project properties had no effect.
> Who can help?
> TIA,
> Kathrin
0 Likes
Message 3 of 5

Anonymous
Not applicable
Have you tried it using "hh.exe"?

Shell "hh.exe "

(Example below: Win XP Pro help file)
Shell "hh.exe
ms-its:C:\WINDOWS\Help\keyb.chm::/win_kbd_cursor_blink_rate.htm"

Gary
0 Likes
Message 4 of 5

Anonymous
Not applicable
I don't think you can do that with .hlp files. The .chm files are compiled
html help files, that's why you can link directly to a url.

Tim Riley
0 Likes
Message 5 of 5

Anonymous
Not applicable
I think you are correct on that point.

Gary
0 Likes