View Single Post
 
Old 05-31-2015, 08:39 AM
AustinBrister AustinBrister is offline Windows 7 64bit Office 2013
Novice
 
Join Date: May 2015
Posts: 16
AustinBrister is on a distinguished road
Default VBA to set format for paragraphs that meet with specific requirements

I need a VBA that will go through all the selected text, and nothing more, and analyze each paragraph, then set each of those paragraphs that match ANY of the following conditions, to the style "Quote":
  1. Begins with " and contains no other " within the paragraph
  2. Begins with " AND ends with " AND there are no other " within the paragraph
  3. is already indented at least 0.4" or more on the left and 0.4" or more on the right

Any tips?

Thanks in advance!
Reply With Quote