View Single Post
 
Old 03-26-2023, 12:45 PM
Harvi007 Harvi007 is offline Windows 11 Office 2019
Novice
 
Join Date: Aug 2022
Posts: 11
Harvi007 is on a distinguished road
Question VBA to add Shift+Enter at the beginning of each line

Hi,

I was looking for some help with a vba macro please.

I need to find an automated way to add Shift+Enter at the beginning of each line in a document.

I found some code that adds char160 at the end of a line that has a space on the end, but this is not consistent and also misses lines that have a comma on the end.

The reason for the Shift+Enter is to allow the text to then be justified correctly.

Please, any help with this would be greatly appreciated.

Thank you
Reply With Quote