Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-03-2017, 11:56 AM
qubie qubie is offline Word 2007 - Wilcard Expression - End of File Windows 7 64bit Word 2007 - Wilcard Expression - End of File Office 2007
Novice
Word 2007 - Wilcard Expression - End of File
 
Join Date: Aug 2016
Posts: 24
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 Word 2007 - Wilcard Expression - End of File Windows 7 64bit Word 2007 - Wilcard Expression - End of File 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

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
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 10-04-2017, 06:31 AM
qubie qubie is offline Word 2007 - Wilcard Expression - End of File Windows 7 64bit Word 2007 - Wilcard Expression - End of File Office 2007
Novice
Word 2007 - Wilcard Expression - End of File
 
Join Date: Aug 2016
Posts: 24
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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2007 - Wilcard Expression - End of File Opening a Word 2010 .docx file with Word 2007 and Issues bwalshnl Drawing and Graphics 1 03-02-2017 04:13 AM
Word 2007 - Wilcard Expression - End of File 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
Word 2007 - Wilcard Expression - End of File 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 - Wilcard Expression - End of File [Word 2007] How to hyperlink directly another word file chapter/paragraph/bookmark? LeeFX Word 4 05-05-2011 05:53 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:17 AM.


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