+ Reply to Thread
Results 1 to 4 of 4

Changing The Find Default Dialogue.. Possible?

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-02-2006
    Location
    Love City, USA
    Posts
    183

    Question Changing The Find Default Dialogue.. Possible?

    Hi, Is there a formula or coding that can modify the Excel Find/Replace Default
    settings? I notice when a program is reopened the default settings of the
    'Find / Replace' are always reset to Search Within 'Sheet' instead of 'Workbook'.

    I would also like to be able to have the 'Match Entire Cell Contents' Checked
    Off as default when the Dialogue is opened. This May Not be Possible, but
    thought I would at least ask... Thanks For any Help Here.

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    If I recall correctly these settings are determined at Excel installation ...
    So you are left with two possibilities :
    1. Use VBA cells.find
    Sub Macro1()
        Cells.Find(What:="", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
            xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
            ).Activate
    End Sub
    2. Design your own UserForm with your own option settings ...
    HTH
    Carim


    Top Excel Links

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Mhz,

    There is a third option available, but only for expert level programmers. The Find/Replace dialog is not an Excel dialog, but a Windows System dialog. Excel provides a wrapper function to make this low level code easier to use.

    At its heart there a 2 API (Application Interface) calls: FINDTEXT and REPLACETEXT. There are several other API functions used as well. To make all this work requires "hooking" into the Windows messaging system.

    I vote for Carim's solution. It is easier and faster to do. The API is a very powerful programming tool, but requires care and a thorough understanding of what it is doing.

    Sincerely,
    Leith Ross

  4. #4
    Forum Contributor
    Join Date
    07-02-2006
    Location
    Love City, USA
    Posts
    183

    Thumbs up I understand..

    Thanks Very Much... Could Not have gotten the Answers From a Better Source.. ...
    I'll try Carim's Alternate Workaround. I felt that It would be
    a bit more complex based on what Ross Described... Man, It's Good to Have
    Experienced Programmers around when you need them.. Thanks Alot...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1