MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Private Sub Command1_Click() Dim objMSWord As Word.Application Dim myDoc As Word.Document Set objMSWord = CreateObject("Word.Application") Set myDoc = objMSWord.Documents.Open("C:\111114.txt") For Each p In myDoc.Paragraphs If InStr(p.Range.Text, "BlockedIP") > 0 Then 'Skipping - found text Else p.Range.Delete End If Next myDoc.SaveAs ("c:\Users\Me\Desktop\052214_2.txt") myDoc.Close Set myDoc = Nothing objMSWord.Quit End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.