Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-28-2017, 10:00 PM
Ardcore1984 Ardcore1984 is offline Marco to find and delete unwanted blank rows in manuscript Windows 10 Marco to find and delete unwanted blank rows in manuscript Office 2016
Novice
Marco to find and delete unwanted blank rows in manuscript
 
Join Date: Nov 2017
Posts: 2
Ardcore1984 is on a distinguished road
Default Marco to find and delete unwanted blank rows in manuscript


Hi all,

I have some experience with VBA in Excel but this is my first attempt at a VBA solution in Word. I'm writing a novel in Scrivener and I periodically export it to Word for various reasons. When I export to Word, Scrivener adds an extra unwanted row between scenes. I use ### to indicate the end of a scene. I'd like to have a macro that cycles through my manuscript looking for all instances of "###" and then deletes the empty row that immediately follows it. I'm attaching a screenshot to help explain.

Any takers for this? It would be much appreciated as I do this export fairly frequently and there are enough scenes in the book that make it not feasible to do this manually.

Attached Images
File Type: png scene break.PNG (38.6 KB, 11 views)
Reply With Quote
  #2  
Old 11-28-2017, 10:04 PM
gmayor's Avatar
gmayor gmayor is offline Marco to find and delete unwanted blank rows in manuscript Windows 10 Marco to find and delete unwanted blank rows in manuscript Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,105
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Had you displayed the paragraph breaks (click the ¶ button on the Home tab) it would have been clearer what you want, but all you need to do is search for

###^p
replace with
###
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 11-28-2017, 10:13 PM
Ardcore1984 Ardcore1984 is offline Marco to find and delete unwanted blank rows in manuscript Windows 10 Marco to find and delete unwanted blank rows in manuscript Office 2016
Novice
Marco to find and delete unwanted blank rows in manuscript
 
Join Date: Nov 2017
Posts: 2
Ardcore1984 is on a distinguished road
Default

Wow that seems to have worked. Looks like I was trying to make this way too complicated. Thanks for saving me a lot of time!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to delete every blank and non-numeric rows without removing the header enuff Excel 3 08-24-2017 05:56 AM
Marco to find and delete unwanted blank rows in manuscript Delete blank rows between the two rows that contain data beginner Excel Programming 5 12-26-2014 12:29 AM
Find and Delete Rows based on a range damaniam Excel Programming 2 03-12-2014 06:06 AM
Find and Delete Rows damaniam Word VBA 1 03-11-2014 06:54 AM
Marco to find and delete unwanted blank rows in manuscript Delete Blank Rows (Cyrillic Text in Spreadsheet ) dozd Excel 1 02-22-2013 03:24 AM

Other Forums: Access Forums

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


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