title: How to start a macro with a Button in Outlook Form?
body: <p>I have a user defined form in Outlook 2019.</p>
  <p>How can I start a macro by pressing a button in the form?</p>
  <p>The macro is in <em>ThisOutlookSession</em>.<br />
  It sets the cursor at the end of the body of the form:</p>
  <pre class="lang-vb prettyprint-override"><code>Public Sub SetCursor()
      Dim Ins As Outlook.Inspector
      Dim Doc As Word.Document
      Dim Range As Word.Range
      Dim Pos As Long
      Set Ins = Application.ActiveInspector
      Set Doc = Ins.WordEditor
      If Not Doc Is Nothing Then
          Pos = Doc.Range.End - 1
          Set Range = Doc.Range(Pos, Pos)
          Range.Select
      End If
  End Sub
  </code></pre>
  <p>The code to start the macro is in the <em>Outlook Form</em>:</p>
  <pre class="lang-vb prettyprint-override"><code>Public Sub CommandButton1_Click()
      CODE TO CALL THE MACRO NEEDED!?
  End Sub 
  </code></pre>