title: How do you substring a MERGEFIELD in Word?
body: <p>This one has me puzzled. It seemed like an easy task, but the solution eludes me:
  - How do you substring a merge field in a Word template used for mail merging?</p>
  
  <p>For example, I have something like <code>{MERGEFIELD barcodevalue}</code> and I want to extract the first 6 characters as it is at the same time an identifier for something else.</p>
  
  <p>I can find information on how to remove chars to the left of a given position in a numerical field <code>(\x)</code> but not to the right.</p>