Open a custom help-file

Michelangelo

Registered User.
Local time
Today, 12:09
Joined
Dec 20, 2002
Messages
37
Hi,

I've got a custom help file (.chm). I want to open it on the click of a commandbutton.
I've tried the shell command, but it doesn't work.
If I open it directly from the explorer then it works perfectly, just can't do it in code.

Any help?

M.
 
Did you reference the CHM Help program "HH.exe" first?
Call Shell("C:\WINDOWS\hh.exe C:\WINDOWS\Help\mspaint.chm", vbNormalFocus)

You can also try the FollowHyperlink method.
Application.FollowHyperlink "C:\WINDOWS\Help\mspaint.chm"

HTH
 
Thanks,

First worked great, forgot the hh.exe bit.

The second one works also, but displays a message the the to be opened file can be harmful. The docmd.setwarning false command is of no influence

So I stick with the first one

M.
 

Users who are viewing this thread

Back
Top Bottom