![]() |
|
#2
|
|||
|
|||
|
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? |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Insert input box into macro to allow user to choose multiple text entries
|
Hoxton118 | Word VBA | 6 | 04-03-2014 12:12 AM |
User input to a variable on the document
|
dsm1995gst | Word VBA | 1 | 09-03-2013 03:43 PM |
Replacing text with user input.?.?.?
|
brad1977 | Word | 3 | 11-20-2012 10:20 AM |
Restricting User Input on a TextBox (and setting focus)
|
joatmon | Excel Programming | 1 | 06-05-2012 03:01 PM |
| Look up an array based on user input | johnsmb | Excel | 2 | 01-07-2011 01:12 PM |