Hey everyone,

I have a VBA form where the user will enter all sort of
data. Based on that data, I replace certain words in pre-
defined Word document. I have no problem with. I do a
simple find and replace in my VBA code.

However, in certain sitation, i may need to delete an
entire sentence or paragraph. What I do now is search for
a unique set of words, and do the appropraite deletion.
This method works fine.

But I was wondering if there might be a better way of
doing this. My boss suggested using Fields, but I am not
sure how.

Can anyone help? I would greatly appreicate it. Thank you!

Re: Using Word Fields by Cindy

Cindy
Mon Jun 28 13:46:24 CDT 2004

Hi Khalid,

I can't see how fields could help with this. I think using
Find is the most reasonable approach.

> I have a VBA form where the user will enter all sort of
> data. Based on that data, I replace certain words in pre-
> defined Word document. I have no problem with. I do a
> simple find and replace in my VBA code.
>
> However, in certain sitation, i may need to delete an
> entire sentence or paragraph. What I do now is search for
> a unique set of words, and do the appropraite deletion.
> This method works fine.
>
> But I was wondering if there might be a better way of
> doing this. My boss suggested using Fields, but I am not
> sure how.
>

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun
8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:-)