title: Macro to insert a cross reference based on selection
body: <p>I currently work for a company which uses a set house-style for its documents.  This includes multi-levelled numbered headings built in to our Word template. I.e.</p>
  
  <ol>
  <li>Heading 1</li>
  </ol>
  
  <p>1.1 Heading 2</p>
  
  <p>1.1.1 Heading 3</p>
  
  <p>etc...</p>
  
  <p>A large part of our current task involves adding in cross references to other parts in the document.  This can be quite time consuming when the doc runs to several hundred pages with around 10 references on each page. </p>
  
  <p>What I was wondering was if a macro could be set up to add a x-ref based on whatever is highlighted by the cursor.  I.e. if you had a sentence that read "please refer to clause 3.2" you could highlight the "3.2" part, run the macro and have the x-ref linked to heading 3.2 be inserted.</p>
  
  <p>Not sure if this is even possible but would be grateful for any advice.</p>