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
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
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?
I use this formula below to initiate the Find/Replace Dialogue In a Macro:
Sub FindReplace()
SendKeys "^f", False
End Sub
Originally Posted by Mhz
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.
lol, sorry totally-misread
Originally Posted by MDubbelboer
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.
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...
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
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks