ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Can Search's default be changed to "By Columns"? (https://www.excelbanter.com/excel-programming/403825-can-searchs-default-changed-columns.html)

[email protected]

Can Search's default be changed to "By Columns"?
 
The data in my worksheets is such that, every time I launch Excel, I
need to change its Search default from "By Rows" to "By Columns".

Is there some Registry or other setting I can tweak to change that
default?

Thanks.

***

Dave Peterson

Can Search's default be changed to "By Columns"?
 
Saved from a previous post:

Excel tries to help by remembering the last settings you used--except for the
first search in that session.

You can use that to your advantage.

You could make a dummy workbook and put it in your xlStart folder. Have a
macro in that workbook that does a find (and sets all the stuff the way you
like). Then closes and gets out of the way.


Option Explicit
Sub auto_open()

'change the settings the way you like
Worksheets("sheet1").Cells.Find What:="", After:=ActiveCell, _
LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByColumns, _
SearchDirection:=xlNext, MatchCase:=False

ThisWorkbook.Close savechanges:=False

End Sub

The workbook opens, does a find (to fix your settings) and then closes to get
out of the way.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

But if you do an Edit|Find and change anything, then those changed settings will
be remembered.

wrote:

The data in my worksheets is such that, every time I launch Excel, I
need to change its Search default from "By Rows" to "By Columns".

Is there some Registry or other setting I can tweak to change that
default?

Thanks.

***


--

Dave Peterson

[email protected]

Can Search's default be changed to "By Columns"?
 
Dave:

Thanks very much for your reply. It certainly does work.

***


All times are GMT +1. The time now is 06:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com