Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-12-2023, 03:01 AM
Simon95 Simon95 is offline Word VBA Break after specific Character length Windows 10 Word VBA Break after specific Character length Office 2021
Novice
Word VBA Break after specific Character length
 
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
Reply

Tags
break, characters, vba word



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word VBA Break after specific Character length How to shorten English words of specific length by macro? Emby Word VBA 4 10-16-2022 11:25 PM
Replacing font for a specific character wagicz PowerPoint 1 03-16-2021 03:13 PM
Word VBA Break after specific Character length Search for lines that DO NOT have specific character knpaddac Word 1 01-14-2019 01:16 PM
Word VBA Break after specific Character length How can select from a specific character to another character mohsen.amiri Word 2 02-19-2015 11:38 PM
Word VBA Break after specific Character length Macro for word to add page break and specific text to end of document pizzaman1 Word VBA 6 11-14-2014 11:25 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:46 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft