Inconsistent Behavior of Find and Replace Dialog Box

by Allen Wyatt
(last updated April 7, 2018)

3

Arlene often uses Ctrl+F to locate records in her worksheet so she can modify them. When the Find and Replace dialog box opens, the text in the Find What box is highlighted, which is very helpful; it allows her to immediately overtype what was there before. Sometimes, however, the text in the Find What box is not highlighted, and instead the insertion point is at the beginning of the box's contents. When Arlene starts typing, her text is added to what was in the box before.

This inconsistency is understandably frustrating to Arlene. She would find it most helpful if the contents of the Find What box were always highlighted and that she could count on that all the time, but she cannot. So, she wonders if there is some setting she should check to ensure that Excel is consistent when displaying the Find and Replace dialog box.

There is no setting within Excel that controls whether the Find What text is selected or the insertion point is at the beginning of the Find What box. In fact, in our testing, we could not replicate this issue—every time we used Ctrl+F to display the Find and Replace dialog box, the Find What text was always highlighted. In addition, the text was highlighted every time we left the Find What box (by pressing Tab or by clicking on a different control in the Find and Replace dialog box) and then came back to the Find What box.

This would lead one to question if there might be some macro in play on Arlene's system that is intercepting the Ctrl+F shortcut key or, perhaps, some third-party program that is affecting how Find in Replace operates. If so, then setting Ctrl+F back to its normal operation should fix the problem.

Be that as it may, there is a relatively simple fix that can help ensure the Find What text is selected at all times. Immediately after press Ctrl+F to display the Find and Replace dialog box, press Ctrl+Shift+Right Arrow. This ensures that everything in the Find What box is selected, and if something was previously selected, that selection is not disturbed. At this point, any additional typing you do will overwrite whatever was in the Find What box.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (7923) applies to Microsoft Excel 2007, 2010, 2013, and 2016.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Getting Context-Sensitive Help

Word employs what is called a context-sensitive help system. This means that the program tries to direct you to the ...

Discover More

Single-Use Drop-Down List

Want to create an easy drop-down list? You can do so by using the data validation features of Excel.

Discover More

Adding Pop-Up Documentation to a Cell

Want to have a small help screen pop up when a user selects a particular cell? This can be done by using data validation, ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More ExcelTips (ribbon)

Making All Occurrences Bold

Want to make instances of a given word or phrase bold throughout a worksheet? Here's a way you can make the change quickly.

Discover More

Searching for Leading Apostrophes

Take a look at the Formula bar when you select a cell that contains text, and you may see an apostrophe at the beginning ...

Discover More

Searching a Workbook by Default

When you display the Find tab of the Find and Replace dialog box, you'll notice that any search, by default, will be on ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 8 - 1?

2018-04-10 12:52:09

Willy Vanhaelen

@Alan
The behaviour you describe is indeed a very annoying. it seems to appear in all Office applications. It irritates me every time because it is not logic and prone to errors.

Willy


2018-04-10 02:58:56

Alan Elston

I can't replicate the issue reported by Arlene in a search and find in a spreadsheet either. ( I have tried Excel 2003 , 2007 and 2010 on a few independent versions on different computer instillations)

However I have always observed another slightly strange, or at least inconvenient, behaviour in all my attempts at a search and find in the
Excel VAB Editor Window:
This inconvenient behaviour I see in all those versions of Excel that I have.
I also observe this inconvenient behaviour in Word 2007, both in a search and find
in a document
and also
on a search and find in the Word VBA Editor Window

This inconvenient behaviour is that when hitting the replace with, then the find what is still highlighted and selected. So if I am not careful and start writing immediately after the replace box comes up, then I start overwriting what I am searching for –
So I always must remember to click in the replace box after selecting replace. In all spreadsheet search and replace attempts, the replace box is selected automatically when I hit the replace button. ( I except someone forgot to add that last bit of selection moving software or that last bit of the software does not always work )

Alan Elston



2018-04-09 03:45:38

Richard Price

I can't replicate the issue reported by Arlene either, but there is a somewhat similar issue when repeatedly using Ctrl+H (find and replace), which I believe is consistent. The first time you use it, the insertion point is in the (empty) "Find what" box, but on second and every subsequent occasion it's in the "Replace with" box, with the previous replacement text highlighted.

Presumably there's some reason behind this, but it frequently trips me up. For example, to replace all J10 with K10 I 'd type Ctrl+H J10 Tab K10 Alt+A Enter Esc , which works fine the first time. If at some later point I want to replace all L10 with M10, I would like to type in the same pattern Ctrl+H L10 Tab M10 Alt+A Enter Esc, except that fails because L10 goes into the "Replace with" rather than "Find what", and the Tab highlights the Options button rather than putting the insertion point in "Replace with".


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.