Although I think it could be done, I don't know how by head, and haven't really the time to research.
So let me suggest an alternative: have a messagebox pop-up where the user can enter (or paste) the search term. Assign the string entered to a variable, and use that in the macro in stead of the string "ARNP". Not really very elegant, but it should work, I expect.
Hi! I'm using MS Word 2003 and am trying to create a macro to edit a very long file I have. The macro would make it so easy to fix, but I can't figure out how to create it correctly. I've been using the macro recorder so it records my moves. I had copied a word using ctrl+shift+left arrow and then tried to find the word again using the "find" function and then pasting what I had copied into the find function.
When I open the macro, it is looking at the find function with the "text" of my previously copied information, i.e., "ARNP" rather than the new copied/pasted info. (Does this make sense??) I'll paste the macro below for those who may be able to help. (All I want is to be able to find the copied information.)
Selection.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdExtend
.Text = "ARNP"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindAsk
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False