Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-01-2018, 02:34 AM
moorea21 moorea21 is offline delete 1 or 2 adjacent duplicate paragraphs, macro Windows 7 64bit delete 1 or 2 adjacent duplicate paragraphs, macro Office 2010 64bit
Novice
delete 1 or 2 adjacent duplicate paragraphs, macro
 
Join Date: Jun 2018
Posts: 8
moorea21 is on a distinguished road
Default

Hi Macropod,


I tried that, I don't know why, but it found no matches, even though the duplicates were all adjacent, and very visible to me...


Guessed:


This works great, except that it deletes all occurances of a paragraph, rather than just the adjacent ones. If the same paragraph is repeated further down the original srt file, it deletes that too, so the resuklting script doesn't make sense. Is there a way to limit it to onlt looking 2 paragraphs ahead, rather than trying to look for the target paragraph in the rest of the document?


I can't find a button to press to attach the txt file I've uploaded which I was working on



Thanks for the help, was floundering before.
Reply With Quote
  #2  
Old 11-01-2018, 12:53 PM
macropod's Avatar
macropod macropod is offline delete 1 or 2 adjacent duplicate paragraphs, macro Windows 7 64bit delete 1 or 2 adjacent duplicate paragraphs, macro Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,516
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by moorea21 View Post
I tried that, I don't know why, but it found no matches, even though the duplicates were all adjacent, and very visible to me...
Did you check the 'use wildcards' option?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
duplicates, macro

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Needed to delete Unwanted paragraphs within a table. frustrated teacher Word VBA 0 06-05-2015 12:47 PM
delete 1 or 2 adjacent duplicate paragraphs, macro How to delete the two non-adjacent rows in a table Word beginner Word 2 01-05-2015 05:47 AM
delete 1 or 2 adjacent duplicate paragraphs, macro Macro Needed to delete Unwanted paragraphs in series frustrated teacher Word VBA 1 05-02-2014 03:32 PM
delete 1 or 2 adjacent duplicate paragraphs, macro Macro to Delete Duplicate Rows and Retain Unique Value expert4knowledge Excel Programming 1 02-17-2014 08:02 PM
delete 1 or 2 adjacent duplicate paragraphs, macro Word Macro to find and delete rows that contain adjacent cells containing "." AlexanderJohnWilley Word VBA 7 11-08-2012 10:15 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:03 AM.


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