I have the following codes
Sub DocSearch()
Dim wdApp As Object, wdDoc As Object
Set wdApp = CreateObject("word.application")
wdApp.Visible = True
Set wdDoc = wdApp.Documents.Open("C:\Documents and Settings\Owner\My Documents\downloads\work\M-F-380.1.doc")
With wdDoc.Content.Find
.Text = "Date:"
.Replacement.Text = "Datetest"
.Wrap = wdFindContinue
.Execute Replace:=wdReplaceAll
End With
Set wdApp = Nothing: Set wdDoc = Nothing
End Sub
The above works fine and i have added the following in the above vba codes and its not working
With wdDoc.Content.Find
.Text = "Date:"
.Replacement.Text = "Datetest"
Text = "Prime Lending Rate"
.Replacement.Text =" Repo Rate"
.Wrap = wdFindContinue
.Execute Replace:=wdReplaceAll
Your help will be highly appreciated
Thanks
.(DOT) before the 2ndText. ChangeText = "Prime Lending Rate"to.Text = "Prime Lending Rate"