title: Word 2013 VB script to loop through document and change styles
body: <p>I need a script which iterates through a word document and changes the style of paragraphs following a Headline style or an Image to a custom style without first line indent.</p>
  
  <p>How do I loop through the paragraphs/headers/items in a word document? And how do I get the style? And how do I set the style afterwards?</p>
  
  <p>The Goal is simple: I want the first line of a paragraph be indented, but not if the paragraph is following a Header line or image. And since this is a large document and I get those quite often I'd like some Kind of Automation and not try to do this by Hand.<br>
  So I'd like to write a script which is iterating through the paragraphs and changes the style from "paragraph" to "paragraph without indent" when it is after a header style or image.</p>