
Using clipboard contents in FIND prompt.
I am attempting to create a macro that uses the find command to search
through a document. How can I search through the document using the
contents of the clipboard? In the example below I would like to be able to
replace S104D5BM with whatever happens to be on the clipboard at the time.
With Selection.Find
.Text = "S104D5BM"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
Thanks in advance for any help you can provide.
Dan Johnson