A Microsoft Word forum. Microsoft Office Word Forum - WordBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Microsoft Office Word Forum - WordBanter forum » Microsoft Word Newsgroups » Microsoft Word Help
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Print paragraph first line only



 
 
Thread Tools Display Modes
  #1  
Old July 13th 12, 04:38 PM
JPh12 JPh12 is offline
Junior Member
 
First recorded activity by WordBanter: Oct 2010
Posts: 0
Default Print paragraph first line only

MS Word (2003) Outline view has an option to show only the first line of every paragraph. But it doesn't 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?

Last edited by JPh12 : July 13th 12 at 04:51 PM.
Ads
  #2  
Old July 14th 12, 12:02 AM posted to microsoft.public.word.docmanagement
Stefan Blom[_3_]
external usenet poster
 
Posts: 6,541
Default Print paragraph first line only

My macro should work just fine in Word 2003 as well; it doesn't contain
any objects or object members that didn't exist in Word 2003. Did you
make sure to paste the code with the line breaks intact?

Stefan Blom
Microsoft Word MVP





On 2012-07-13 17:38, JPh12 wrote:
MS Word (2003) Outline view has an option to show only the first line of
every paragraph. But it doesn't 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?





  #3  
Old July 14th 12, 03:39 AM
JPh12 JPh12 is offline
Junior Member
 
First recorded activity by WordBanter: Oct 2010
Posts: 0
Default

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's highlighted in the editor is: "If p.Range.Characters.Count 60 Then"
  #4  
Old July 14th 12, 03:21 PM posted to microsoft.public.word.docmanagement
Stefan Blom[_3_]
external usenet poster
 
Posts: 6,541
Default Print paragraph first line only

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





On 2012-07-14 04:39, JPh12 wrote:
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's highlighted in the editor is: "If p.Range.Characters.Count 60
Then"





  #5  
Old July 14th 12, 09:33 PM
JPh12 JPh12 is offline
Junior Member
 
First recorded activity by WordBanter: Oct 2010
Posts: 0
Default

There's something strange going on. In my browser (Opera, XP) I don't see the "" in your macro. I don't see it here in your reply either (but I saw it in my email alert). I've had problems with my US International keyboard not working properly any longer in Word and other programs; I wondered if it's related.
  #6  
Old July 15th 12, 03:47 PM posted to microsoft.public.word.docmanagement
Stefan Blom[_3_]
external usenet poster
 
Posts: 6,541
Default Print paragraph first line only

Have you tried changing the encoding in your browser?

For what it's worth, I don't 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





On 2012-07-14 22:33, JPh12 wrote:
There's something strange going on. In my browser (Opera, XP) I don't
see the "" in your macro. I don't see it here in your reply either (but
I saw it in my email alert). I've had problems with my US International
keyboard not working properly any longer in Word and other programs; I
wondered if it's related.





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
first line of a paragraph Hayden Microsoft Word Help 1 November 11th 09 04:01 AM
First line of each paragraph streaked Susan Microsoft Word Help 3 June 30th 07 11:01 PM
How to get last paragraph line not to cover whole line? Alan Microsoft Word Help 2 September 10th 06 05:29 PM
Remove paragraph markers? Imported text-Every line a paragraph. GBMD Microsoft Word Help 1 July 20th 06 05:26 PM
Paragraph without new line Art Microsoft Word Help 6 April 5th 05 08:20 AM


All times are GMT +1. The time now is 08:13 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2004-2013 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.