View Single Post
 
Old 02-15-2015, 11:23 PM
gmayor's Avatar
gmayor gmayor is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,137
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

The original macro does not work, because what you are actually looking for is not what you said you were looking for. The macro looks for paragraphs that start with 'Choice (', whereas now you tell us that the paragraph begins with 'Answer ('.

Code:
For Each oPara In ActiveDocument.Paragraphs
     If oPara.Range.Text Like "Choice (*" Then
          oPara.Style = "Extra Space"
     End If
Next oPara
Then you have added in a completely different set of criteria. with phrases that are in the same paragraph, which the code was never intended to address.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote