2 Replies Latest reply on Jul 10, 2018 4:43 AM by Dominique Le Vouadec

    How can I create a help file?

    Dominique Le Vouadec

      Hi all,

       

      I created some personal properties in different languages and I saved in a parameters file my configuration .

      With that, I would like than my colleagues use the same configuration etc...

       

      I wrote a "Help file" in pdf extansion but I don't know how I can do to open this file. My first idea was to include it in the "?" bar but I don't know if it's possible via a macro and I'm not the best in VBA programming.

      Could you help me please.

       

      Regards,

      Dominique

        • Re: How can I create a help file?
          Ivana Kolin
          Option Explicit
          #If VBA7 And Win64 Then
              Private Declare PtrSafe 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
          #Else
              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
          #End If
          
          
          
          Private Sub OpenFile(FileName As String)
              Dim Result As Long
              Result = ShellExecute(0&, vbNullString, FileName, vbNullString, vbNullString, vbNormalFocus)
              If Result < 32 Then MsgBox "Error"
          End Sub
          
          
          
          
          Sub main()
              
              OpenFile "<< YOUR PDF >>"
              
          End Sub