home

Calling Help from Word - Help Authoring Site

home Buy This Domain search
Help Authoring: Calling Help from Word - Help Authoring Site

Calling Help from Word - Help Authoring Site

You need to know how to use the Word macro language but the following Word Basic Code should Help you call Help form Word.

Declarations (16 Bit)

Declare Function GetActiveWindow Lib "user" As Integer

Declare Function WinHelp Lib "user"(hwnd As Integer, lpFileName As String, wCommand As Integer, dwData As Long) As Integer

Declarations (32 Bit)

Declare Function GetActiveWindow Lib "user32" Alias "GetActiveWindow" As Long

Declare Function WinHelp Lib "user32" Alias "WinHelpA" (hwnd As Long, lpFileName As String, wCommand As Long, dwData As Long) As Long

Sub MAIN

Call DisplayHelp("You help file name and location goes in here")

End Sub

Sub DisplayHelp(Helpfile$)

Wnd = GetActiveWindow

X = Winhelp(Wnd, Helpfile$, 3, 0)

End Sub

Sub DisplayHelpContext(HelpFile$, Location)

Wnd = GetActiveWindow

X = Winhelp(Wnd, Helpfile$, 1, Location)

End Sub

Help Authoring: Calling Help from Word - Help Authoring Site

Amazon Prime Free Trial


Help Authoring: Calling Help from Word - Help Authoring Site