A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Replace code in forms



 
 
Thread Tools Display Modes
  #1  
Old September 9th, 2004, 07:57 PM
Tom
external usenet poster
 
Posts: n/a
Default Replace code in forms

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



  #2  
Old September 10th, 2004, 02:41 AM
Jeff Boyce
external usenet poster
 
Posts: n/a
Default

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...

--
More info, please ...

Jeff Boyce
Access MVP

  #3  
Old September 10th, 2004, 07:57 PM
Tom
external usenet poster
 
Posts: n/a
Default

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","BlockOfCodeToR eplaceWith")

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

I don't even know if that's possible



Thanks

Tom




"Jeff Boyce" -DISCARD_HYPHEN_TO_END wrote in message
...
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...

--
More info, please ...

Jeff Boyce
Access MVP



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to phrase If/Then clauses in the control source field Database Design 13 August 14th, 2004 04:22 PM
Visible or Invisible Code Dave Elliott Using Forms 18 July 27th, 2004 04:33 AM
VBA Code Help - Badly needed venus as a boy General Discussion 1 July 20th, 2004 06:53 PM
If..Else..Problem... MaryF New Users 18 July 7th, 2004 01:01 AM
search and replace individual documents Hilary Ratner General Discussion 5 June 10th, 2004 01:35 AM


All times are GMT +1. The time now is 08:25 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.