Open a custom help-file (1 Viewer)

Michelangelo

Registered User.
Local time
Today, 17:49
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.
 

ghudson

Registered User.
Local time
Today, 12:49
Joined
Jun 8, 2002
Messages
6,195
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
 

Michelangelo

Registered User.
Local time
Today, 17:49
Joined
Dec 20, 2002
Messages
37
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

Top Bottom