Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-13-2013, 01:44 PM
cheech1981 cheech1981 is offline Searching by Quotation Length Windows 7 64bit Searching by Quotation Length Office 2010 64bit
Advanced Beginner
Searching by Quotation Length
 
Join Date: Nov 2011
Location: New Jersey, USA
Posts: 77
cheech1981 is on a distinguished road
Default Searching by Quotation Length

Hello everyone,

Is it possible in Microsoft Word to search for quoted text of a certain length?

I would like to search for any instances of text that falls between an opening and closing smart quotation mark in which the text totals 40 words or greater. (all quotation marks are formatted as smart quotes in the document)

The reason for doing this is because I have to locate all such quotes so that I can format them as block indented quotes. For now I am searching through and doing word counts of each quote but the document is about 400 pages so just curious if there is a way to expedite this, and it's a task I will have to do in the future as well.

Thank you in advance for any advice you might have!



I am currently on Word 2013, Windows 8.
Reply With Quote
  #2  
Old 03-13-2013, 01:51 PM
cheech1981 cheech1981 is offline Searching by Quotation Length Windows 7 64bit Searching by Quotation Length Office 2010 64bit
Advanced Beginner
Searching by Quotation Length
 
Join Date: Nov 2011
Location: New Jersey, USA
Posts: 77
cheech1981 is on a distinguished road
Default

Ah, just figured it out. Sorry:

I checked wildcards and used this search:

[^0147]*[^0148]

Then I'm looking at the bottom of the screen as I search through for the word count. Just figured I'd post the solution for anyone in the future. Thanks anyway!
Reply With Quote
  #3  
Old 03-13-2013, 02:13 PM
macropod's Avatar
macropod macropod is online now Searching by Quotation Length Windows 7 64bit Searching by Quotation Length Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Actually, you solution doesn't restrict itself to text having more than 40 words - it finds quotes of any length.

If one assumes an average word length of at least 5 characters, plus spaces, the following could be used:
[^0147][!^0148]{240,}*[^0148]
If that's too long for you, simply reduce the 240.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 03-13-2013, 04:51 PM
cheech1981 cheech1981 is offline Searching by Quotation Length Windows 7 64bit Searching by Quotation Length Office 2010 64bit
Advanced Beginner
Searching by Quotation Length
 
Join Date: Nov 2011
Location: New Jersey, USA
Posts: 77
cheech1981 is on a distinguished road
Default

Very interesting Paul, thanks!
Reply With Quote
  #5  
Old 03-14-2013, 08:23 AM
cheech1981 cheech1981 is offline Searching by Quotation Length Windows 7 64bit Searching by Quotation Length Office 2010 64bit
Advanced Beginner
Searching by Quotation Length
 
Join Date: Nov 2011
Location: New Jersey, USA
Posts: 77
cheech1981 is on a distinguished road
Default

As a follow-up, I realized that this doesn't quite work as easily in Word for Mac. At least, the unicode values of 0147 and 0148 don't register, and I tried a couple of other unicode values that I saw online but didn't have luck, at least in my doc. After playing a bit, I realized that I could (after checking the wildcard box as usual) copy and paste in an opening and closing smart quote and just search for this: "*" Just figured I'd pass that along to save the next person the time.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I select everything that is in quotation marks? Jophassa Word 4 09-02-2011 10:57 AM
Searching by Quotation Length Can't find the quotation (") in the document!!!! why? Jamal NUMAN Word 2 07-08-2011 03:02 AM
page length mzimpfer Word 2 10-23-2010 11:53 AM
Searching by Quotation Length problem with automatic formatting on quotation marks Bobosmite Word 3 05-27-2010 07:06 PM
How to set the same length for different lines myword29 Word 0 09-28-2007 08:12 PM

Other Forums: Access Forums

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