+ Reply to Thread
Results 1 to 6 of 6

Button that makes the "Find and Replace" popup come up when pressed.

Hybrid View

  1. #1
    Registered User
    Join Date
    08-12-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    1

    Button that makes the "Find and Replace" popup come up when pressed.

    I'd like to create a button that makes the "Find and Replace" popup come up when pressed. Does anyone know how to do this?

    (Ctrl + F is the shortcut for it)

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Button that makes the "Find and Replace" popup come up when pressed.

    Assign this macro to a button.

    Sub Find_and_Replace_Show()
        Application.Dialogs(xlDialogFormulaFind).Show
    End Sub
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Button that makes the "Find and Replace" popup come up when pressed.

    I would avoid buttons where ever possible, rather use the change event for the sheet , in ths case for cell A1.

    Click on cell A1

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
        If Target.Address = "$A$1" Then
            SendKeys "^f"
            Target.Offset(0, 1).Select
        End If
    End Sub
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Button that makes the "Find and Replace" popup come up when pressed.

    Quote Originally Posted by Marcol View Post
    I would avoid buttons where ever possible
    I don't get it. What's wrong with buttons?

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Button that makes the "Find and Replace" popup come up when pressed.

    Once you have seen enough workbooks with deleted code, copied sheets, references to other workbooks, etc. you'll see why.

  6. #6
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Button that makes the "Find and Replace" popup come up when pressed.

    Quote Originally Posted by Marcol View Post
    Once you have seen enough workbooks with deleted code, copied sheets, references to other workbooks, etc. you'll see why.
    Respectfully disagree.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Find id"" and replace with id"consecutive number" 3071 entries
    By RoyLittle0 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-19-2012, 07:27 AM
  2. "Popup question button" when initiate a macro
    By Portuga in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-10-2008, 06:26 PM
  3. Replies: 2
    Last Post: 07-17-2006, 06:55 PM
  4. Replies: 2
    Last Post: 09-01-2005, 05:05 PM
  5. [SOLVED] Replace "insert function" with "edit formula" button in fourmula b
    By 13brian in forum Excel General
    Replies: 0
    Last Post: 08-24-2005, 04:05 PM

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