Option buttons to show text

V

vandaley

HI,

I am trying to create a user form in word VBA that when pressing an
option button a certain text will appear in the document.
When pressing a different option button a different piece of text will
show.
this way the user will follow the qizard and will create a document.
Of course the text is a long string with screen shots and not just
text.

Any suggestions?

Thanks,
 
D

Dave Lett

Hi,

You can have the text/images in the document, but formatted as hidden text
and bookmarked. When a user clicks the appropriate option button, you can
run a routine that turns the hidden text into viewable text for the
boorkmark.

HTH,
Dave
 
V

vandaley

Dave said:
Hi,

You can have the text/images in the document, but formatted as hidden text
and bookmarked. When a user clicks the appropriate option button, you can
run a routine that turns the hidden text into viewable text for the
boorkmark.

HTH,
Dave

Dave,

Thanks, and what is the syntax for doing that?

Thanks,
 
R

Russ

Vandaley,

Message below.
Dave,

Thanks, and what is the syntax for doing that?

*Most* of the time you can get the syntax needed by recording a macro while
manually going through the steps that you want to happen, like inserting
text files or inserting pictures into a document, or hiding/unhiding
selected or bookmarked text. Then check the code it shows in the recorded
macro and tweak it if necessary; then cut and paste to make it part of the
action done when your userform buttons are pressed. That should be a
preliminary step to work things out for yourself and then ask specific
questions in the forums if your initial code isn't satisfactory and by
showing the code you've tried. Sometimes a recorded macro doesn't show all
the necessary code and you can't find it in VBA help. Then tell the forum
that you at least tried those steps yourself.

You're Welcome,
 

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