Avatar of Dave Kong
Dave Kong
Flag for United States of America

asked on 

Can a Word macro be used to determine the number of lines in a selected paragraph?

I want to create a Word VBA macro that will count the number of lines in a selected paragraph.  Based on the number of lines, I want to then modify the "space after" setting to add more space.


I am not sure if a macro can be used to determine the number of lines in a paragraph.  Can a macro can be used to determine the number of lines in a paragraph.  If so, how does the code access this property?

Microsoft WordVBA

Avatar of undefined
Last Comment
Flyster

8/22/2022 - Mon