Using Word Fields

K

Khalid

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!
 
C

Cindy M -WordMVP-

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
:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top