Word - Print paragraph first line only
Asked By JPh12 on 13-Jul-12 11:38 AM
MS Word (2003) Outline view has an option to show only the first line of
every paragraph. But it does not allow to print it.
Is there a way (macro?) to print such a condensed view of the document?
PS: I tried the HideRestOfParagraph() macro posted by M. Blom in
response to the recent "Outline with just 1st line of paragraphs" thread
(July 10th 2012) but I get a compile error at run time. Perhaps because
the macro is not compatible with W2003?
--
JPh12
Stefan Blom replied to JPh12 on 13-Jul-12 07:02 PM
My macro should work just fine in Word 2003 as well; it does not contain
any objects or object members that did not exist in Word 2003. Did you
make sure to paste the code with the line breaks intact?
Stefan Blom
Microsoft Word MVP
JPh12 replied to Stefan Blom on 13-Jul-12 10:39 PM
Thanks for getting back to me.
Yes, I maintained the macro as is when I copied it into the Microsoft
Visual Basic editor.
When I run it I get a "Compile error: Syntax error" message and the line
that is highlighted in the editor is: "If p.Range.Characters.Count 60
Then"
--
JPh12
Stefan Blom replied to JPh12 on 14-Jul-12 10:21 AM
That line should read
If p.Range.Characters.Count > 60 Then
It seems as if you had left out the ">"?
Stefan Blom
Microsoft Word MVP
JPh12 replied to Stefan Blom on 14-Jul-12 04:33 PM
There is something strange going on. In my browser (Opera, XP) I do not
see the ">" in your macro. I do not see it here in your reply either (but
I saw it in my email alert). I have had problems with my US International
keyboard not working properly any longer in Word and other programs; I
wondered if it is related.
--
JPh12
Stefan Blom replied to JPh12 on 15-Jul-12 10:47 AM
Have you tried changing the encoding in your browser?
For what it is worth, I do not use the browser for newsgroups posts much.
I sometimes search the newsgroup archives at
https://groups.google.com/forum/?fromgroups#!overview but when I post I
make use of NNTP access via a newsreader (Thunderbird or Windows Live
Mail). (I set up an account via eternal-september.org.)
Stefan Blom
Microsoft Word MVP