I am trying to open a help file (.hlp) that i created in word. I have a form with a button ('show help') that I want to open my help file when clicked. I have not set a help context id I just want to open it. Does anyone know how to do this?
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Sub CommandButton1_Click()
Dim sFile As String
sFile = "C:\Program Files\Norton AntiVirus\enulotus.hlp"
Call ShellExecute(0&, "Open", sFile, vbNullString, vbNullString, 0&)
End Sub
Care to specify how this works justinEzequiel?
Also faztech how did you create the help file in word? Is it an ordinary .doc file or did you compile it to a .hlp file?
D.
Thanks Justin that worked great. Deetee2000, I made the help file with a program I downloaded from the net called Microsoft Help Workshop. First make a word file in format .rtf, with all you help documentation and then just follow the instructions outlined in Help Workshop. It is really easy and looks great.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.