Hi
I am looking for a macro that will take the value of a cell "A1" and search for it in a .docx file and then just add the word "Yes" into cell "B1"
This code is what i have and it opens the word doc but then i need to perform the find.
Thank you
I am looking for a macro that will take the value of a cell "A1" and search for it in a .docx file and then just add the word "Yes" into cell "B1"
This code is what i have and it opens the word doc but then i need to perform the find.
Thank you
Code:
Sub FindName()
Dim wrdApp As Word.Application
Dim wrdDoc As Word.Document
Set wrdApp = CreateObject("Word.Application")
wrdApp.Visible = True
Set wrdDoc = wrdApp.Documents.Open("C:\Test\ACBS.docx")
Dim FindWord As String
FindWord = Sheet1.Range("A1").Value
MsgBox FindWord
************
Search the word and set "B1" to "Yes"
************
End Sub