PC Review


Reply
Thread Tools Rate Thread

Change Settings in Find Dialog Box

 
 
=?Utf-8?B?RWxhaW5l?=
Guest
Posts: n/a
 
      19th Feb 2007
I want a macro that will change the default setting in the Find or Find and
Replace dialog box to search by "columns" instead of rows, and look in
"values" instead of formulas.

I'm glad all of you are there to help people like me.
--
Thank you... Elaine
 
Reply With Quote
 
 
 
 
JE McGimpsey
Guest
Posts: n/a
 
      19th Feb 2007
One way:

Put this in the ThisWorkbook code module of your Personal.xls workbook:

Private Sub Workbook_Open()
Worksheets(1).Cells.Find What:=vbNullString, _
LookIn:=xlValues, SearchOrder:=xlByColumns
End Sub

Note that the Find dialog retains the settings of previous finds, so the
new "defaults" won't come up if you do a search by rows and look in
formulas.



In article <D370379D-72A1-43F7-908E-(E-Mail Removed)>,
Elaine <(E-Mail Removed)> wrote:

> I want a macro that will change the default setting in the Find or Find and
> Replace dialog box to search by "columns" instead of rows, and look in
> "values" instead of formulas.
>
> I'm glad all of you are there to help people like me.

 
Reply With Quote
 
=?Utf-8?B?RWxhaW5l?=
Guest
Posts: n/a
 
      19th Feb 2007
This is what I have in the Personal Workbook and it does not work for me.
What am I doing wrong?
------------------------------------------------------------------------------
Sub Custom_Find_Dialog()
'
' Custom_Find_Dialog Macro
'

'
Private Sub Workbook_Open()
Worksheets(1).Cells.Find What:=vbNullString, _
LookIn:=xlValues, SearchOrder:=xlByColumns
End Sub
------------------------------------------------------------------------
--
Thank you so much for your help... Elaine


"JE McGimpsey" wrote:

> One way:
>
> Put this in the ThisWorkbook code module of your Personal.xls workbook:
>
> Private Sub Workbook_Open()
> Worksheets(1).Cells.Find What:=vbNullString, _
> LookIn:=xlValues, SearchOrder:=xlByColumns
> End Sub
>
> Note that the Find dialog retains the settings of previous finds, so the
> new "defaults" won't come up if you do a search by rows and look in
> formulas.
>
>
>
> In article <D370379D-72A1-43F7-908E-(E-Mail Removed)>,
> Elaine <(E-Mail Removed)> wrote:
>
> > I want a macro that will change the default setting in the Find or Find and
> > Replace dialog box to search by "columns" instead of rows, and look in
> > "values" instead of formulas.
> >
> > I'm glad all of you are there to help people like me.

>

 
Reply With Quote
 
JE McGimpsey
Guest
Posts: n/a
 
      19th Feb 2007
You shouldn't have the

Sub Custom_Find_Dialog()

line. In fact, what you've shown *should* give you a compile error.

Make sure that the Workbook_Open() macro is in the ThisWorkbook module,
not a regular code module.



In article <61B6D01F-017F-41E1-A414-(E-Mail Removed)>,
Elaine <(E-Mail Removed)> wrote:

> This is what I have in the Personal Workbook and it does not work for me.
> What am I doing wrong?
> ------------------------------------------------------------------------------
> Sub Custom_Find_Dialog()
> '
> ' Custom_Find_Dialog Macro
> '
>
> '
> Private Sub Workbook_Open()
> Worksheets(1).Cells.Find What:=vbNullString, _
> LookIn:=xlValues, SearchOrder:=xlByColumns
> End Sub
> ------------------------------------------------------------------------
> --
> Thank you so much for your help... Elaine
>
>
> "JE McGimpsey" wrote:
>
> > One way:
> >
> > Put this in the ThisWorkbook code module of your Personal.xls workbook:
> >
> > Private Sub Workbook_Open()
> > Worksheets(1).Cells.Find What:=vbNullString, _
> > LookIn:=xlValues, SearchOrder:=xlByColumns
> > End Sub
> >
> > Note that the Find dialog retains the settings of previous finds, so the
> > new "defaults" won't come up if you do a search by rows and look in
> > formulas.
> >
> >
> >
> > In article <D370379D-72A1-43F7-908E-(E-Mail Removed)>,
> > Elaine <(E-Mail Removed)> wrote:
> >
> > > I want a macro that will change the default setting in the Find or Find
> > > and
> > > Replace dialog box to search by "columns" instead of rows, and look in
> > > "values" instead of formulas.
> > >
> > > I'm glad all of you are there to help people like me.

> >

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      19th Feb 2007
JE wrote to put this code:

Private Sub Workbook_Open()
Worksheets(1).Cells.Find What:=vbNullString, _
LookIn:=xlValues, SearchOrder:=xlByColumns
End Sub

behind the ThisWorkbook module in your personal.xls workbook's project.

Don't try to bury it in an existing subroutine (like custom_find_document).

By using Workbook_Open under ThisWorkbook, then the code will run each time
excel opens this file. By using personal.xls (in your XLStart folder), excel
will open that file each time it starts.

Elaine wrote:
>
> This is what I have in the Personal Workbook and it does not work for me.
> What am I doing wrong?
> ------------------------------------------------------------------------------
> Sub Custom_Find_Dialog()
> '
> ' Custom_Find_Dialog Macro
> '
>
> '
> Private Sub Workbook_Open()
> Worksheets(1).Cells.Find What:=vbNullString, _
> LookIn:=xlValues, SearchOrder:=xlByColumns
> End Sub
> ------------------------------------------------------------------------
> --
> Thank you so much for your help... Elaine
>
> "JE McGimpsey" wrote:
>
> > One way:
> >
> > Put this in the ThisWorkbook code module of your Personal.xls workbook:
> >
> > Private Sub Workbook_Open()
> > Worksheets(1).Cells.Find What:=vbNullString, _
> > LookIn:=xlValues, SearchOrder:=xlByColumns
> > End Sub
> >
> > Note that the Find dialog retains the settings of previous finds, so the
> > new "defaults" won't come up if you do a search by rows and look in
> > formulas.
> >
> >
> >
> > In article <D370379D-72A1-43F7-908E-(E-Mail Removed)>,
> > Elaine <(E-Mail Removed)> wrote:
> >
> > > I want a macro that will change the default setting in the Find or Find and
> > > Replace dialog box to search by "columns" instead of rows, and look in
> > > "values" instead of formulas.
> > >
> > > I'm glad all of you are there to help people like me.

> >


--

Dave Peterson
 
Reply With Quote
 
=?Utf-8?B?RWxhaW5l?=
Guest
Posts: n/a
 
      19th Feb 2007
It works!!! I'm soooo glad for people like you that have the patience and
expertise to help others!!!
--
Thank you... Elaine


"JE McGimpsey" wrote:

> You shouldn't have the
>
> Sub Custom_Find_Dialog()
>
> line. In fact, what you've shown *should* give you a compile error.
>
> Make sure that the Workbook_Open() macro is in the ThisWorkbook module,
> not a regular code module.
>
>
>
> In article <61B6D01F-017F-41E1-A414-(E-Mail Removed)>,
> Elaine <(E-Mail Removed)> wrote:
>
> > This is what I have in the Personal Workbook and it does not work for me.
> > What am I doing wrong?
> > ------------------------------------------------------------------------------
> > Sub Custom_Find_Dialog()
> > '
> > ' Custom_Find_Dialog Macro
> > '
> >
> > '
> > Private Sub Workbook_Open()
> > Worksheets(1).Cells.Find What:=vbNullString, _
> > LookIn:=xlValues, SearchOrder:=xlByColumns
> > End Sub
> > ------------------------------------------------------------------------
> > --
> > Thank you so much for your help... Elaine
> >
> >
> > "JE McGimpsey" wrote:
> >
> > > One way:
> > >
> > > Put this in the ThisWorkbook code module of your Personal.xls workbook:
> > >
> > > Private Sub Workbook_Open()
> > > Worksheets(1).Cells.Find What:=vbNullString, _
> > > LookIn:=xlValues, SearchOrder:=xlByColumns
> > > End Sub
> > >
> > > Note that the Find dialog retains the settings of previous finds, so the
> > > new "defaults" won't come up if you do a search by rows and look in
> > > formulas.
> > >
> > >
> > >
> > > In article <D370379D-72A1-43F7-908E-(E-Mail Removed)>,
> > > Elaine <(E-Mail Removed)> wrote:
> > >
> > > > I want a macro that will change the default setting in the Find or Find
> > > > and
> > > > Replace dialog box to search by "columns" instead of rows, and look in
> > > > "values" instead of formulas.
> > > >
> > > > I'm glad all of you are there to help people like me.
> > >

>

 
Reply With Quote
 
=?Utf-8?B?RWxhaW5l?=
Guest
Posts: n/a
 
      19th Feb 2007
What incredible people all of you are!!!
--
A BIG thank you... Elaine


"Dave Peterson" wrote:

> JE wrote to put this code:
>
> Private Sub Workbook_Open()
> Worksheets(1).Cells.Find What:=vbNullString, _
> LookIn:=xlValues, SearchOrder:=xlByColumns
> End Sub
>
> behind the ThisWorkbook module in your personal.xls workbook's project.
>
> Don't try to bury it in an existing subroutine (like custom_find_document).
>
> By using Workbook_Open under ThisWorkbook, then the code will run each time
> excel opens this file. By using personal.xls (in your XLStart folder), excel
> will open that file each time it starts.
>
> Elaine wrote:
> >
> > This is what I have in the Personal Workbook and it does not work for me.
> > What am I doing wrong?
> > ------------------------------------------------------------------------------
> > Sub Custom_Find_Dialog()
> > '
> > ' Custom_Find_Dialog Macro
> > '
> >
> > '
> > Private Sub Workbook_Open()
> > Worksheets(1).Cells.Find What:=vbNullString, _
> > LookIn:=xlValues, SearchOrder:=xlByColumns
> > End Sub
> > ------------------------------------------------------------------------
> > --
> > Thank you so much for your help... Elaine
> >
> > "JE McGimpsey" wrote:
> >
> > > One way:
> > >
> > > Put this in the ThisWorkbook code module of your Personal.xls workbook:
> > >
> > > Private Sub Workbook_Open()
> > > Worksheets(1).Cells.Find What:=vbNullString, _
> > > LookIn:=xlValues, SearchOrder:=xlByColumns
> > > End Sub
> > >
> > > Note that the Find dialog retains the settings of previous finds, so the
> > > new "defaults" won't come up if you do a search by rows and look in
> > > formulas.
> > >
> > >
> > >
> > > In article <D370379D-72A1-43F7-908E-(E-Mail Removed)>,
> > > Elaine <(E-Mail Removed)> wrote:
> > >
> > > > I want a macro that will change the default setting in the Find or Find and
> > > > Replace dialog box to search by "columns" instead of rows, and look in
> > > > "values" instead of formulas.
> > > >
> > > > I'm glad all of you are there to help people like me.
> > >

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
change file open dialog settings John Windows XP Customization 1 8th Aug 2007 06:30 AM
Preventing System Settings Change Dialog =?Utf-8?B?RG9taW5pYw==?= Windows XP Embedded 1 31st May 2006 02:29 PM
setting find dialog box default settings =?Utf-8?B?YnJlcnJhYmJpdDMxNQ==?= Microsoft Access Forms 0 22nd Oct 2004 02:59 PM
Excel 97 change default settings in print dialog box pjmb Microsoft Excel Misc 1 2nd May 2004 04:47 AM
Find Dialog Box settings Jim & Beth Hess Microsoft Access Getting Started 0 25th Feb 2004 08:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:57 AM.