sub macro1() dim par as paragraph, index as long, n as long for each par in activedocument.paragraphs index = par.range.paragraphformat.alignment n = n + 1 if index = wdalignparagraphcenter then debug.print "第 " & n & "短对齐方式:居中 " if index = wdalignparagraphleft then debug.print "第 " & n & "短对齐方式:左对齐 " if index = wdalignparagraphright then debug.print "第 " & n & "短对齐方式:右对齐 " if index = wdalignparagraphjustify then debug.print "第 " & n & "短对齐方式:两端对齐 " next end sub