Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #16  
Old 07-14-2012, 12:23 AM
TTN TTN is offline Clean an Email backup file Windows XP Clean an Email backup file Office 2003
Novice
Clean an Email backup file
 
Join Date: Jul 2012
Posts: 13
TTN is on a distinguished road
Default

Word shows the MIME code to be 80 characters wide. So I tried [!^13 ]{79,80}^13 It came back none found Also I found this script on the internet that is suposed to delete any paragraph that does not have a given string.
Code:
Sub DeleteParagraphContainingString()
Dim search As String
search = " "
Dim para As Paragraph
For Each para In ActiveDocument.Paragraphs
  Dim txt As String
  txt = para.Range.Text
  If Not InStr(LCase(txt), search) Then
    para.Range.Delete
  End If
Next
End Sub
I created the macro for it and it shows as the only macro available how ever when I click on the macro to run WORD try's to run a script I tried yesterday and not the current one. I can't find any reference to the one it is trying to run. So I can't delete it either.

Last edited by macropod; 07-14-2012 at 12:29 AM. Reason: Added code tags & formatting
Reply With Quote
 

Tags
delete, filter, text



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot restore Outlook from backup file guyco1970 Outlook 0 03-12-2012 01:27 PM
How do i restore my backup mails to my email adsegzy Outlook 3 04-25-2011 04:00 PM
Clean an Email backup file Automated pst file backup jbarr11 Outlook 1 04-17-2011 05:28 PM
Outlook looking for backup file on startup htown Outlook 0 12-05-2010 07:32 PM
Importing .pst and backup csv file shirlthepirl Outlook 0 09-04-2009 09:35 AM

Other Forums: Access Forums

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