jrstriker12
MIS
Hi all,
I’m trying to create a macro that would align multiple lines of text based on a specific location.
Basically I have a letter in a word document that places three lines of text near the right hand margin. The line in the center is the longest. I need to align the first characters in the two shorter lines above and below based on the position of the first character in the middle line.
For example:
Big
Sunny Afternoon
Picnic
These lines are not right aligned; the application that generates the letter just inserts spaces to position the text. Altering the application is not an option.
Using the example text above - I know that using selection.information I can find the position of the “S” in Sunny. Once I know that position, is there a way to place the other lines in the same position on the lines above and below?
Any suggestions on functions or approaches would be appreciated.
I’m trying to create a macro that would align multiple lines of text based on a specific location.
Basically I have a letter in a word document that places three lines of text near the right hand margin. The line in the center is the longest. I need to align the first characters in the two shorter lines above and below based on the position of the first character in the middle line.
For example:
Big
Sunny Afternoon
Picnic
These lines are not right aligned; the application that generates the letter just inserts spaces to position the text. Altering the application is not an option.
Using the example text above - I know that using selection.information I can find the position of the “S” in Sunny. Once I know that position, is there a way to place the other lines in the same position on the lines above and below?
Any suggestions on functions or approaches would be appreciated.