Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #14  
Old 05-09-2014, 01:13 AM
Danilo Danilo is offline How to insert paragraph character after every 500 characters? Windows 7 64bit How to insert paragraph character after every 500 characters? Office 2013
Novice
 
Join Date: May 2014
Posts: 11
Danilo is on a distinguished road
Default

The previous one (.InsertAfter "***" & vbCr & "***" &nbsp gave me a sequence : *** Pb ***, and it worked except for bigger paragraphs where I had to rerun the macro to get the result. I don't have use for the first three asterisks, it suffices to me to have the paragraph marked at the beginning, but they are not a problem either, that part goes with the original text which is cut out.

The revised code (.InsertAfter vbCr & "*** " & vbCr) inserts a sequence Pb *** Pb and this one does it perfectly, and at one go, whatever the length of the paragraph. This one actually does what I asked for, but I have a problem of different kind now. To conveniently move to the next paragraph, I've created a keyboard shortcut using autohotkey which places the cursor after the paragraph break (CTRL+DOWN ARROW places it at the beginning of the next paragraph and that doesn't suit me so I made a combination of Word shortcuts to place the insertion point in between the paragraphs, and added a code from the net to change the text color to red), so that the other paragraph break in the sequence PB *** PB is a problem. Is it possible to change it so the second paragraph break is left out and I get PB*** inserted instead. That would be pitch perfect for my purposes, and a great time-saver. Thanks for the help again macropod.
Reply With Quote
 

Tags
paragraph character



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to insert paragraph character after every 500 characters? Restricting paragraph styles without restricting character styles Red Pill Word 5 05-25-2012 01:06 PM
character set bobster Word 0 06-07-2011 10:17 AM
How to insert paragraph character after every 500 characters? tab key arrows first character carolinason Word 6 10-30-2010 06:45 PM
Junk characters (box-like characters) in Word file Sashikala Word 1 04-20-2010 02:03 PM
Character style stripped while applying paragraph style sams_gates Word 0 08-29-2009 02:03 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:06 PM.


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