View Single Post
 
Old 02-23-2012, 05:14 AM
rufusfrog rufusfrog is offline Windows 7 64bit Office 2003
Novice
 
Join Date: Feb 2012
Posts: 3
rufusfrog is on a distinguished road
Default indent alternate lines by different amounts

I need to write a macro in Word 2003 to format poetry to indent the even lines more than the odd. I can write the logic but don't know enough VBA to write the code. I think to make the code work I'll need each line as a separate paragraph which I can just use find/replace to achieve so assume that's done.

The logic, I think, is:
Within the selection,
...indent the first paragraph 1",
...indent the next paragraph 1.25",
repeat these two actions until end of selection.

Can anyone help me with the code to achieve this?
Reply With Quote