Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 03-18-2013, 10:03 AM
netchie netchie is offline Word VBA - Search a word and add/remove it Windows XP Word VBA - Search a word and add/remove it Office 2007
Novice
Word VBA - Search a word and add/remove it
 
Join Date: Jun 2011
Posts: 24
netchie is on a distinguished road
Default

Oh wait! I think I got it! Found it while surfing

Here is theVBA for those who needs similar VBA

Code:
Sub RemoveWord()
Dim rngStory As Range
For Each rngStory In ActiveDocument.StoryRanges
  With rngStory.Find
    .Text = "Do"
    .Replacement.Text = "Done
    .Wrap = wdFindContinue
    .Execute Replace:=wdReplaceAll
  End With
Next rngStory
End Sub

But still, to to the guys who always helping me here. You guys ROCK!

Thanks,
netchie

Last edited by macropod; 03-19-2013 at 03:02 PM. Reason: Added code tags & formatting
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
search on multiple word documents Guy Roth Word 7 03-06-2017 01:31 PM
Word VBA - Search a word and add/remove it Word: Search and fill from Excel gbrucken Word 1 04-30-2012 10:40 AM
Word VBA - Search a word and add/remove it Remove numbering from Word Doc antaeusguy Word 1 03-14-2012 04:01 AM
Word VBA - Search a word and add/remove it search option in word 2007 anano Word 1 01-11-2012 09:03 AM
Search Problems in MS Word LoganB Word 0 09-03-2010 06:49 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:23 PM.


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