ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I change the Excel "search" default to WORKBOOK & DATA? (https://www.excelbanter.com/excel-discussion-misc-queries/235359-how-do-i-change-excel-search-default-workbook-data.html)

danny bromberg

How do I change the Excel "search" default to WORKBOOK & DATA?
 
How do I change the Excel "search" default so that WITHIN WORKBOOK and LOOKIN
DATA appear when I click on the OPTIONS (instead of the default WITHIN SHEET
and LOOKIN FORMULAS)?

Dave Peterson

How do I change the Excel "search" default to WORKBOOK & DATA?
 
I don't think you can change the "within" option. But you can change the other
settings, but not permanently.

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(1).Cells.Find What:="", After:=ActiveCell, _
LookIn:=xlValues, _
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.

danny bromberg wrote:

How do I change the Excel "search" default so that WITHIN WORKBOOK and LOOKIN
DATA appear when I click on the OPTIONS (instead of the default WITHIN SHEET
and LOOKIN FORMULAS)?


--

Dave Peterson

Shane Devenshire[_2_]

How do I change the Excel "search" default to WORKBOOK & DATA?
 
Hi,

Here is one way:

Sub myFind2()
SendKeys "%E{Enter}F"
SendKeys "%HW{Enter}"
SendKeys "%LV{Enter}"
SendKeys "%N{Enter}"
End Sub

If you assign this to a toolbar button or give it a shortcut key it will do
what you want. Personally I don't like using SendKeys because this might
work in 2003 but not in 2007 or a later version.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"danny bromberg" wrote:

How do I change the Excel "search" default so that WITHIN WORKBOOK and LOOKIN
DATA appear when I click on the OPTIONS (instead of the default WITHIN SHEET
and LOOKIN FORMULAS)?


Shane Devenshire[_2_]

How do I change the Excel "search" default to WORKBOOK & DATA?
 
Hi,

Here is one way:

Sub myFind2()
SendKeys "%E{Enter}F"
SendKeys "%HW{Enter}"
SendKeys "%LV{Enter}"
SendKeys "%N{Enter}"
End Sub

If you assign this to a toolbar button or give it a shortcut key it will do
what you want. Personally I don't like using SendKeys because this might
work in 2003 but not in 2007 or a later version.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"danny bromberg" wrote:

How do I change the Excel "search" default so that WITHIN WORKBOOK and LOOKIN
DATA appear when I click on the OPTIONS (instead of the default WITHIN SHEET
and LOOKIN FORMULAS)?


danny bromberg[_2_]

How do I change the Excel "search" default to WORKBOOK & DATA?
 

"Dave Peterson" wrote:

I don't think you can change the "within" option. But you can change the other
settings, but not permanently.

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(1).Cells.Find What:="", After:=ActiveCell, _
LookIn:=xlValues, _
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.

danny bromberg wrote:

How do I change the Excel "search" default so that WITHIN WORKBOOK and LOOKIN
DATA appear when I click on the OPTIONS (instead of the default WITHIN SHEET
and LOOKIN FORMULAS)?


--

Dave Peterson


danny bromberg[_2_]

How do I change the Excel "search" default to WORKBOOK & DATA?
 

"Shane Devenshire" wrote:

Hi,

Here is one way:

Sub myFind2()
SendKeys "%E{Enter}F"
SendKeys "%HW{Enter}"
SendKeys "%LV{Enter}"
SendKeys "%N{Enter}"
End Sub

If you assign this to a toolbar button or give it a shortcut key it will do
what you want. Personally I don't like using SendKeys because this might
work in 2003 but not in 2007 or a later version.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"danny bromberg" wrote:

How do I change the Excel "search" default so that WITHIN WORKBOOK and LOOKIN
DATA appear when I click on the OPTIONS (instead of the default WITHIN SHEET
and LOOKIN FORMULAS)?



All times are GMT +1. The time now is 08:28 PM.

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