View Single Post
  #7   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Allow white spaces for hidden text in Word 2003

One more little thing, in case it's not obvious from Lene's description: In
order to get white text with a black underline, you will have to change the
text color, then change the underline color from Automatic to Black (in the
Format | Font dialog).

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Lene Fredborg" wrote in message
...
From your example I can see that the table solution will not work here

(could
be used if the answers were separate paragraphs).

I think I would use the _white font_ method instead of hidden text and to
this:

Create a _character_ style to be used for the answer text (in the

following,
the style is named "Answer text"). Base the style on the "Default

Paragraph
Font" and add the attributes you want (for example, it may be helpful to
format the font as bold and red when showing the answers). Format all the
answer text in the document with the "Answer text" style.

Before printing the document, modify the "Answer text" style as white and
maybe underlined. When showing the answers, modify the "Answer text" style

to
the "display answer" look.

In order to make the switch from visible to invisible fast and easy, you
could use a macro. The macro below will toggle the style definition

between
"red text and no underline" and "white text plus black underline". If you

are
the only user, you can store the macro in your Normal.dot. If you assign

the
macro to a toolbar button, it will be fast and easy to toggle between the
style definitions.

The macro:

Sub ToggleAnswerText()

With ActiveDocument.Styles("Answer text").Font
If .Color = wdColorWhite Then
'Change to red, remove underline
.Color = wdColorRed
.Underline = wdUnderlineNone
Else
'Change to white plus underline
.Color = wdColorWhite
.Underline = wdUnderlineSingle
.UnderlineColor = wdColorBlack
End If
End With
End Sub

If you are making a lot of these exercises, you could create a template

with
the macro and the "Answer text" style and base all your exercises on that
template.

For help on installing macros, see:
http://www.gmayor.com/installing_macro.htm

--
Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word


"Peter - hidden text question" wrote:


Hi Lene,

I appreciate your time in answering the question, and you nearly

answered my
question. I already know how to create tables for answers with,

however, I
want to be able to write a paragraph or a page with some hidden text

(and
white spaces so that students can fill in an answer. Perhaps an example

would
help he

The cow jumped over the moon, and the fork ran away with the spoon.

If I want students to identify the correct verb tense for jump and run

in
the above sentence, I might want to write the question sentence like

this;

The cow (jump) over the moon, and the fork (run) away

with
the spoon.

in the white spaces, I would like to be able to type in hidden text
"jumped", and "ran" so that I could print the sentences with white

spaces,
and then show my
students on Page view with the correct answers of jumped and ran.

Is is possible without having to use tables?

Kind regards,

Peter