A Microsoft Office (Excel, Word) forum. OfficeFrustration

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 » OfficeFrustration forum » Microsoft Word » Page Layout
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to add code Listing to Document like a picture?



 
 
Thread Tools Display Modes
  #1  
Old October 15th, 2009, 05:34 PM posted to microsoft.public.word.pagelayout
Xnyl
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  
Old October 16th, 2009, 11:13 AM posted to microsoft.public.word.pagelayout
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
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  
Old October 18th, 2009, 10:49 AM posted to microsoft.public.word.pagelayout
bubbakittee
external usenet poster
 
Posts: 7
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
 




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 Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.