I wrote an excel macro which will open and embedded word doc inside the excel and replace text,header ,footer and all with cell values user input in excel and save as a new doc in a local folder of the user.
I want to replace the existing watermark inside the document/insert a new watermark based on the input given in excel sheet. Please help.For finding and replacing ,i have used the below code
For Each MyRange In wrdDoc.StoryRanges
With MyRange.Find
.Text = "<<Document Name>>"
.Replacement.Text = DocName
.Wrap = wdFindContinue
.Execute Replace:=wdReplaceAll
End With
Loop
Bookmarks