Word - Outline with just 1st line of paragraphs

Asked By Ray Maruschak on 10-Jul-12 12:28 AM
I want to send a complicated agreement to a client.

It has headings and sub headings, sub-sub headings

But I do not want him to have all of the agreement.  He'll just try to do
it himself.

I want to show only the first line of each paragraph, or the first 60
characters of each line.

Maybe use the rand() or locum() to replace the rest of the characters?
Or maybe that is too fancy, just delete the rest or hide it.

I plan to print to PDF, then send it to him.

I'd be grateful for your kind help.




--
Ray Maruschak


Stefan Blom replied to Ray Maruschak on 10-Jul-12 06:40 AM
Formatting the text as hidden would certainly do the trick, because
hidden text will be omitted from the PDF. But I am guessing you want to
automate the procedure? In that case, the following very basic macro
should do the trick:

Sub HideRestOfParagraph()
Dim p As Paragraph
Dim j As Long
For Each p In ActiveDocument.Paragraphs
If p.Range.Characters.Count > 60 Then
For j = 61 To p.Range.Characters.Count
p.Range.Characters(j).Font.Hidden = True
Next j
End If
Next p
End Sub

The macro checks each paragraph for the number of characters and it
hides the 61th and subsequent characters if found. (Note that the macro
may hide *parts* of words.)

For assistance, see http://www.gmayor.com/installing_macro.htm.

Stefan Blom
Microsoft Word MVP