View Single Post
 
Old 05-16-2014, 12:38 PM
fumei fumei is offline Windows 7 64bit Office XP
Expert
 
Join Date: Jan 2013
Posts: 440
fumei is on a distinguished road
Default

Code:
 .Text = InputBox("Type City and press Enter.")


Comments:
declare your variables!
if the Selection point is ahead of the text you enter, it will NOT find it. If you want to go through the entire document use the document range, rather than Selection.

Do you actually want to create a new document for every found instance of your text string?
Reply With Quote