title: VBA Outlook How to add hyperlink into email body
body: <p>This macro adds hyperlink to email :</p>
  
  <pre><code>  Sub test_add_hyperlink()
       Dim NewMail As Outlook.MailItem
       Set NewMail = Application.ActiveInspector.CurrentItem
       NewMail.HTMLBody = "&lt;HTML&gt;&lt;BODY&gt;&lt;A href=http://www.someaddress.com&gt;URL_TEXT&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;" &amp; NewMail.HTMLBody  End Sub
  </code></pre>
  
  <p>but how to add hyperlink in place where active cursor is ? I ask beacause I would like to add hyperlink not at the front of message, but where my currently writing message.</p>
  
  <p>The hyperlink I would like to add is the hyperlink to file which is currently copied to Windows' clipboard, this part I've written, but I can't figure out how to place it not at the front of email, but in place where active cursor is. I think that macro based emulation of Windows' keypressing is one of the directions to follow.</p>