View Single Post
 
Old 10-12-2023, 03:01 AM
Simon95 Simon95 is offline Windows 10 Office 2021
Novice
 
Join Date: Oct 2023
Posts: 1
Simon95 is on a distinguished road
Default Word VBA Break after specific Character length

Hi Guys,



i hope y'all r good.


Im looking for a Word VBA which can do:


- Do a Break (go to the next line) after a specific Character length (lets say 50 Characters).


- If the last Character in the line is not empy (so its a word, wich i dont wanna divide), put the whole last word in to the next line.



- If the current page got 14 lines, go to the next Page.




I've found:



https://www.msofficeforums.com/word-...ery-500-a.html


which helped me for the 50 length part, but not for the other 2 parts im looking for.



It's my very first time doing a VBA-Macro and i just managed to do the break-part after 50 Characters (But just copied a Code from this Forum)




I hope u guys still active and can help me, im really desperate and couldnt find any solution.






Kind regards and greetings from Germany,
Simon
Reply With Quote