How to print a word document with paragraph style names

G

Ginger

Does anyone know how to print a word document with the paragraph style names
displayed in the printed document?

Ginger
 
D

Doug Robbins - Word MVP

Hi Ginger,

Run the following macro

Dim apara As Paragraph
For Each apara In ActiveDocument.Paragraphs
apara.Range.InsertBefore apara.Style & " - "
Next apara


--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
G

Ginger

Hi Doug

Thanx for your macro, it works excellent, but, could you please amend it a
bit. I need the style names to be centred and hi-lited instead of it being
next to the paragraph, it corrupts the formatting, eg. tabs and indents,etc.

many thanx
 

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