+ Reply to Thread
Results 1 to 4 of 4

Vba Script For Ctrl+f

Hybrid View

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

    Question Vba Script For Ctrl+f

    Hi, is there a macro code that will execute the ctrl+f function for the search feature? if so, could you please post it for me?

    I want to use a button to click on my program that will display the search (Find) dialogue.

    Thanks In Advance for any help on this...

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Excel has a built in button to call Find.

    Goto View > Toolbars > Customise > Command tab > Edit and select the Find

    Drag to your toolbar

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. 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,

    Here is macro you can call from a button to launch the Find/Replace Dialog...

    Sub FindReplace()
    
      SendKeys "^f", False
      
    End Sub
    Sincerely,
    Leith Ross

  4. #4
    Forum Contributor
    Join Date
    07-02-2006
    Location
    Love City, USA
    Posts
    183
    Thanks Very Much for the Responses!

    Leith Ross, that is exactly what I needed... I want to be able to link the Macro to my created button on the sheet.. Thanks Very Much!

    Thanks to you also VBA Noob, I forgot to mention to you that I was
    creating my own button I wanted to link to the macro, but your info
    is invaluable none the less, thanks for all your help..

+ 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