#1
|
|||
|
|||
Delete blank paragraph below bold, end square bracket
Hello All, I am using a macro to format a system generated report. I have reused a previous macro to find a paragraph that is bold and ends with a square bracket. The macro finds the square bracket and applies ‘Paragraph Keep With Next’ and applies ‘Space After’ to the paragraph. The next paragraph after the end square bracket has a blank paragraph inserted. How can I add a condition to the macro that moves to the next paragraph down and if the paragraph is blank it is deleted ??? Unfortunately I have to live with many other blank paragraphs, so do not want them all deleted. Regards, Dave T |
#2
|
||||
|
||||
You could just use an ordinary Find/Replace, where:
Find = ]^p^p Replace = ]^p No macros required - though you could incorporate the above into a macro if you really need to.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Once again I appreciate your help Paul.
I had seen many, many posts on deleting blank paragraphs using find and replace with wildcards, but hadn't thought the solution would be so simple. Regards, Dave T |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Remove repeated number after square bracket | jeffreybrown | Word VBA | 8 | 12-04-2018 06:01 PM |
Why when I paste text into word, blank space appears after a paragraph & I can't delete it? | AWD | Word | 3 | 10-16-2018 01:10 PM |
Word 2010 - Remove square-bracket encased string in large document | IntestinalWorm | Word | 1 | 06-20-2017 01:14 AM |
Bold numbers between square brackets | jeffreybrown | Word | 4 | 02-13-2017 04:32 PM |
Delete bookmark and paragraph which is blank | dsjk9190 | Word VBA | 2 | 01-22-2015 01:15 AM |