Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 08-05-2019, 01:34 AM
afif afif is offline Macro to remove table captions leaves empty space Windows 7 64bit Macro to remove table captions leaves empty space Office 2010
Novice
Macro to remove table captions leaves empty space
 
Join Date: Jul 2019
Posts: 16
afif is on a distinguished road
Default

Thanks Lockton for the reply, that removes 1 blank line above. But what if I try to remove several blank lines from multiple caption insertions in one table ?

I try to add the code below :
Code:
'loop through all blank lines above the removed line.
Do While aRng.Paragraphs(1).Previous.Range.Text = vbCr
        
        aRng.Delete
Loop
But it doesn't remove all the blank lines
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove space between header and first bullet in Outlook email created by Excel macro kevinbradley57 Excel Programming 1 03-27-2019 08:39 PM
Macro to remove table captions leaves empty space How to remove almost a full page of blank space in between Word table rows garrisonsdad Word Tables 4 10-18-2018 09:09 PM
Macro to remove table captions leaves empty space Can't get rid of empty white space in table wtfword Word Tables 2 01-24-2018 02:47 AM
Macro to remove table captions leaves empty space Remove consecutive empty paragraphs within existing macro kevinbradley57 Word VBA 5 10-11-2017 05:04 PM
Macro to remove table captions leaves empty space Remove space after table in header melliejane Word 1 03-05-2012 04:09 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:46 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