|
| automated search and replace question |
 |
Mon, 24 Mar 2008 05:41:13 -040 |
I have a large macro library in WP12. And many of the macros call up a
specific printer. I will be changing to a different named printer, and
because of that, I have to edit a bunch of macros accordingly.
I'd like to automate the process to make the task easier. I know that I can
create a macro to make the changes in any open macro document. But I'd like
to take this further. The ultimate would be to be able to create this macro
to do the job on a complete folder of macro files automatically. If this is
not possible. how about doing this via selecting a file in a folder in WP12,
and then running the special macro, which would open the file, search and
replace for all instances of the old printer name, replace them with the new
printer name, and then save and close the file?
Any suggestions and/or code snippets would be appreciated.
Ron Hirsch
|
| Post Reply
|
| Re: automated search and replace question |
 |
Mon, 24 Mar 2008 07:12:58 -040 |
Ron:
Until someone comes along with a good, more detailed and specific
solution, you might want to have a look at Roy Lewis' (lemoto) macros
DoFolder and DocsList(you can find it on his sight
http://lemoto.myby.co.uk/mcMenFl.htm). One of them may do what you need
or at least get you part way there.
Joel
Ron Hirsch wrote:
> I have a large macro library in WP12. And many of the macros call up a
> specific printer. I will be changing to a different named printer, and
> because of that, I have to edit a bunch of macros accordingly.
>
> I'd like to automate the process to make the task easier. I know that I can
> create a macro to make the changes in any open macro document. But I'd like
> to take this further. The ultimate would be to be able to create this macro
> to do the job on a complete folder of macro files automatically. If this is
> not possible. how about doing this via selecting a file in a folder in
WP12,
> and then running the special macro, which would open the file, search and
> replace for all instances of the old printer name, replace them with the
new
> printer name, and then save and close the file?
>
> Any suggestions and/or code snippets would be appreciated.
>
> Ron Hirsch
>
>
>
|
| Post Reply
|
| Re: automated search and replace question |
 |
Mon, 24 Mar 2008 07:43:38 -050 |
I posted a simple one at this link.
http://www.wpuniverse.com/vb/showthread.php?threadid=5624
|
| Post Reply
|
| Re: automated search and replace question |
 |
Mon, 24 Mar 2008 10:50:15 -040 |
Thank you Ken and Joel - I will look into both of the links.
Ron Hirsch
|
| Post Reply
|
| Re: automated search and replace question |
 |
Mon, 24 Mar 2008 15:44:03 GMT |
Ron:
> Thank you Ken and Joel - I will look into both of the links.
>
Be sure all the macros to be worked on are not open in WP.
--
Good wishes!
Roy Lewis
C_Tech volunteer
(UK)
|
| Post Reply
|
|
|
|
|
|
|
|
|
|