Hiding Text

D

Darren

I'm trying to create a form where I want to hide a section of text. I've
gone into the Format Font section and hidden the text I want to hide.
However, when I click on the Show/Hide icon on the toolbar, I see all the
Paragraph symbols. Is there any way to get rid of the paragraph symbols?

Thanks,

-darren
 
J

Jay Freedman

I'm trying to create a form where I want to hide a section of text. I've
gone into the Format Font section and hidden the text I want to hide.
However, when I click on the Show/Hide icon on the toolbar, I see all the
Paragraph symbols. Is there any way to get rid of the paragraph symbols?

Thanks,

-darren

In the Tools > Options > View dialog, there are check boxes for five
different kinds of nonprinting characters (tabs, spaces, paragraph
marks, hidden text, and optional hyphens) plus one for "All" of the
other five. The Show/Hide icon only toggles the "All" setting on and
off. So if you want to affect the visibility of hidden text without
showing the paragraph marks and other items, you have to change _only_
the "Hidden text" setting.

You could manually open the dialog and click the check box, but that's
too much trouble. There isn't any built-in command to do this, so you
need a macro:

Sub ToggleHidden()
ActiveWindow.View.ShowHiddenText = _
Not ActiveWindow.View.ShowHiddenText
End Sub

The article http://www.gmayor.com/installing_macro.htm explains how to
put the macro into the template of your form, and
http://www.word.mvps.org/FAQs/Customization/AsgnCmdOrMacroToToolbar.htm
shows how to make a toolbar button for it.
 

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