Replace code in forms

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

is there a way to have a custom function that will find a block of code and
replace it with another within a form's module?

thanks
 
Tom

This is a very generic question. Could you provide a little more
information about what you are trying to accomplish? There may be other
ways that the readers could offer...
 
Hi Jeff,

Well I wanted a quick way to find and replace specific blocks of code within
a form's (.cls) class module and Modules. Simliar to when you are in the
code window of a form and you bring up the Find/Replace dialog, but instead
of having to supply what to search for and what to replace it with, have
those parameters supplied by default

for example:

when I run this function, it would go thrrough all code modules and find and
replace say a block of coments with something else

something like this for example

FindAndReplace("BlockOfCodeToFind","BlockOfCodeToReplaceWith")

So this would search all code in all modules and perform the replacement

I don't even know if that's possible



Thanks

Tom
 
Back
Top