VBA for Selecting One of 4 different paragraphs

  • Thread starter Laura C Johnson
  • Start date
L

Laura C Johnson

Hello all!

I'm looking for some assistance. I'm using Word 2003, by the way.

I need to figure out how to give a user of my doc template the option of 4
different paragraphs (3 sentences max)...they select one of the paragraphs
and that paragraph is inserted in the template and the other 3 disappear.

Can someone help me?

Thanks in advance,
Laura
 
J

Jezebel

Before you start re-inventing the axle, have a look at what you can do with
AutoText. It's a different approach from your current thinking, but the
functionality is all there already.

Apart from that, you could add four bookmarks - one for each paragraphs,
then in your code check which bookmark contains the current selection and
delete the other three. But the total effort involved -- select within
exactly one of the paragraphs, call the macro; plus your task of providing
some way to call the macro, supporting the macro, and teaching the users to
use it, is -- it seems to me -- a lot more work than simply selecting the
paragraphs you don't want and pressing delete.
 
R

Robert M. Franz (RMF)

Hi Laura
I need to figure out how to give a user of my doc template the option of 4
different paragraphs (3 sentences max)...they select one of the paragraphs
and that paragraph is inserted in the template and the other 3 disappear.

Yes, AutoText (4 entries in the same "category" aka style) and an
AutoTextList field might alredy be all you're looking for.

HTH
Robert
 

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