+ Reply to Thread
Results 1 to 9 of 9

Is it Possible to do this??

  1. #1
    Registered User
    Join Date
    01-29-2007
    Posts
    47

    Is it Possible to do this??

    Hello all,

    Is it possible to create a macro in order to use the find/replace feature from excel. I tried to record a macro by clicking on Edit, then Find. I stopped the macro and when I ran it, it didn't do anything. Thanks

  2. #2
    Forum Contributor
    Join Date
    07-13-2006
    Posts
    400
    to do a find
    expression.Find(What, After, LookIn, LookAt, SearchOrder, SearchDirection, MatchCase, MatchByte, SearchFormat)

    to do a replace

    expression.Replace(What, Replacement, LookAt, SearchOrder, MatchCase, MatchByte, SearchFormat, ReplaceFormat)


    in my usage "expression" is generally replaced with the range in which you want to search.
    --Mark

    Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?

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

    Arrow Try This

    I use this formula below to initiate the Find/Replace Dialogue In a Macro:

    Sub FindReplace()

    SendKeys "^f", False

    End Sub

  4. #4
    Registered User
    Join Date
    01-29-2007
    Posts
    47
    Quote Originally Posted by Mhz
    I use this formula below to initiate the Find/Replace Dialogue In a Macro:

    Sub FindReplace()

    SendKeys "^f", False

    End Sub

    Mhz,


    Thanks buddy that's it, great! and thanks to all for responding. One question though, what is this "SendKeys "^f", False"
    Last edited by julvaz; 02-07-2007 at 01:06 PM.

  5. #5
    Forum Contributor
    Join Date
    07-13-2006
    Posts
    400
    lol, sorry totally-misread

  6. #6
    Registered User
    Join Date
    01-29-2007
    Posts
    47
    Quote Originally Posted by MDubbelboer
    lol, sorry totally-misread



    MDubbelboer,

    No problem bud, I actually did what you sent and it works fine also. I had to tweakk the code some, but it does what I want it to do.

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

    Thumbs up

    Thanks Julvaz, This Credit Is Deservingly of Leith Ross whom showed me this
    Code. He has also helped me with other questions.. Thumbs Up for Leith Ross on This weird VBA Code.. It definately Works...

  8. #8
    Registered User
    Join Date
    01-29-2007
    Posts
    47

    Find

    Hey Mhz

    Is there a code I can use along with the code below so that when I click on close it takes me to another worksheet?

    Sub FindReplace()

    SendKeys "^f", False

    End Sub

  9. #9
    Registered User
    Join Date
    01-29-2007
    Posts
    47

    Another question? on Find

    Hello all,

    Is there a code I can use along with the code below so that when I click on close it takes me to another worksheet? Right now the way I have it, it takes me to the Master List worksheet when I run the code, but how about ot go back to the first worksheet when I click on close on Find/Replace?

    Please Login or Register  to view this content.

    Thanks
    Last edited by julvaz; 02-08-2007 at 04:54 PM.

+ 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