Ed,
If you stick with the Scripting FileSystemObject, you can once again read
the entire XML (text) file into a string and then use the 'Replace' function
to replace the tags and text between them with your updated strings. When
you work with text files with the filesystemobject, you open them for
reading, writing or appending. Always keep in mind that if you open the
file for writing, existing text will be overwritten so make sure you back up
your xml files as you test options. The scripting site I directed you to
has scores of other sample scripts that might give you ideas.
You might want to take a look at what Astrid posted in this thread. It
might be an even more efficient way to handle the problem.
Steve
> Thank you, Steve!! This got me farther than anything else yet!
>
[quoted text clipped - 103 lines]
>>
>> - Show quoted text -
Ed from AZ - 16 Nov 2007 15:49 GMT
> You might want to take a look at what Astrid posted in this thread. It
> might be an even more efficient way to handle the problem.
I copied Astrid's code into a VBA module and ran it, but it didn't
give me any of the tags. It did, though, give me whole chinks of info
that I didn't see in the doc.
I think I would rather work with the whole file simply as a large
string, as the scripting code gave me. If I parse carefully along the
tags I know should be there, I ought to be able to do just about
anything I want and build a new string with my new data - providing
simply writing that new string back into the document won't screw
things up!
But, yes, for that reason, I an working with unneeded copies of other
documents. That much I have learned!
Thanks for all the input and direction.
Ed
> Ed,
>
[quoted text clipped - 121 lines]
>
> - Show quoted text -