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

D

danny bromberg

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)?
 
D

Dave Peterson

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.
 
S

Shane Devenshire

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.
 
S

Shane Devenshire

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.
 
D

danny bromberg

Dave Peterson said:
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.
 
D

danny bromberg

Shane Devenshire said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top