Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.pagelayout
Xnyl Xnyl is offline
external usenet poster
 
Posts: 1
Default How to add code Listing to Document like a picture?

Dear professionals,

Since a while, I wonder how to elegantly add Code listings into a Word 2007
document. My goal is to have a Text (Code-)block with an annotation below
like I can do it with a picture and to be able to reference and automatically
build an index out of it. Exactly like doint it with pictures or tables.

This sounds like a usual task, but I couldn't find anything via known search
engines...

It would appreciate your help. Thank you!
  #2   Report Post  
Posted to microsoft.public.word.pagelayout
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default How to add code Listing to Document like a picture?

Use PasteSpecial to paste the code as a picture. You may however first
need to do an ordinary paste into a document and then copy the code from the
document to be able to use PasteSpecial and select the Picture format.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
"Xnyl" wrote in message
...
Dear professionals,

Since a while, I wonder how to elegantly add Code listings into a Word
2007
document. My goal is to have a Text (Code-)block with an annotation below
like I can do it with a picture and to be able to reference and
automatically
build an index out of it. Exactly like doint it with pictures or tables.

This sounds like a usual task, but I couldn't find anything via known
search
engines...

It would appreciate your help. Thank you!


  #3   Report Post  
Posted to microsoft.public.word.pagelayout
bubbakittee bubbakittee is offline
external usenet poster
 
Posts: 13
Default How to add code Listing to Document like a picture?

I have the same question.

My current approach is to put the code in a table that has only
a single cell. You can color the cell to make the code stand out,
and you can reference the table just as you would a picture.

And you could perhaps use a Table Style to get global
control of formatting, if you can figure out how Table Styles
work (I couldn't, entirely)

bk
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I print a listing of all WORD document titles w/i a folder? Lindy R Microsoft Word Help 3 September 5th 09 06:17 AM
Word 2007 mail merge for catagory listing, not listing in the returnof the data. Steve1445[_2_] Mailmerge 2 November 6th 08 11:42 AM
How does one set WORD 2003 to open to the document listing? aljulong Microsoft Word Help 1 September 29th 08 11:08 PM
Listing links in document for editing Gandalv Microsoft Word Help 3 July 1st 06 09:45 AM
Putting a TOC in a document with an additional listing of specific charts in the document Bob Reynolds Microsoft Word Help 1 August 19th 05 04:43 AM


All times are GMT +1. The time now is 05:31 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"