MS-Word Macros
Find a Specific Word in the Document and Delete the Whole Paragraph Where It Located In
The following macro looks for a specific word (ABOUT) in the target document and when it finds it out, selects the whole paragraph where the word is located and deletes the paragraph. This macro is helpful mostly for story writers who, most of the times, come across this kind of context. Therefore Writers, Work hard on story theme but smart on content editing! What do you say!
Sub Word_Identify_Delete_Para()
Dim s As Integer
s = 0
Do Until s >= ActiveDocument.Paragraphs.Count
s = s + 1
ActiveDocument.Paragraphs(s).Range.Select
t = 0
Do Until t >= Selection.Words.Count
t = t + 1
If Selection.Words(t) = "about " Then
Selection.Cut
End If
Loop
Loop
End Sub
Hey! Whoever needs WORD MACROS, for ready use, can contact me for the Word Macro E-book at 3rdchallenge@gmail.com.
- Email this Story
Printer-friendly version- 2601 reads











Recent comments
5 days 10 hours ago
6 days 18 hours ago
6 days 19 hours ago
2 weeks 5 days ago
2 weeks 5 days ago
3 weeks 6 days ago
4 weeks 19 hours ago
5 weeks 4 days ago
6 weeks 1 hour ago
7 weeks 14 hours ago