Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Word

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 10-03-2017, 11:56 AM
qubie qubie is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Aug 2016
Posts: 8
qubie is on a distinguished road
Default Word 2007 - Wilcard Expression - End of File

Greetings,



I have looked high and low, and I am not sure that such a thing exists, but here is a synopsis of my problem, followed by my question.

I am working with a large number of files converted from .pdf that share a common expression that occurs near then end of each file -- "PASSED:"

This word is followed by gibberish that concludes each file; e.g. --

"A~p~ri~l~13~~20~1~7~~~~* APPROVED this ____ ___ 2017 l ltb day of _v{-p_r_i..._I I ".

These are random characters that are not consistent between files. In any case, they are not not needed for my project.

I would like to apply a macro that gets rid of the keyword "PASSED:" as well as everything that follows that keyword to the end of the file.

My question is this: What is the Word wildcard expression or representation for the end of a file? Does such an expression or representation even exist?

Thanks and regards,

Q.
Reply With Quote
  #2  
Old 10-03-2017, 07:25 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 16,300
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

If the content following 'PASSED:' is all one paragraph, you could use a wildcard Find/Replace, where:
Find = ^13PASSED:*^13
Replace =^p
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
  #3  
Old 10-04-2017, 06:31 AM
qubie qubie is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Aug 2016
Posts: 8
qubie is on a distinguished road
Default

Yes, and thank you -- I should have thought about it in that manner. My mind found a single track and would not run in a different direction.

Thanks again and regards,

q.
Reply With Quote
Reply

Tags
wildcards, word 2007
Please reply to this thread with any new information or opinions.

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening a Word 2010 .docx file with Word 2007 and Issues bwalshnl Drawing and Graphics 1 03-02-2017 04:13 AM
Word 2007 , when I save a .doc or .docx file the file type is showing "Empty" Tomc29 Word 9 06-10-2015 03:04 AM
Title bar in word and ecxel 2010 is not picking up greek file name of 2007 file danielle Word 4 12-03-2014 07:47 AM
Microsoft Expression Web ts6947 Misc 0 02-22-2013 08:20 AM
[Word 2007] How to hyperlink directly another word file chapter/paragraph/bookmark? LeeFX Word 4 05-05-2011 05:53 PM


All times are GMT -7. The time now is 07:03 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft