Subscribe For Free Updates!

We'll not spam mate! We promise.

Saturday, May 23, 2015

How To Embed pictures in Microsoft Word

Word 2010 has altered the way you work with images. You can still see the links to image files in Word 2010. From the File menu, choose Info. At the bottom of the right-hand pane, you’ll see Edit Links to Files. If you click on this, you’ll see a Break Link button, but many people say this has no effect. It does work in our copy of Word 2010 if we tick the box labelled ‘Save picture in document’. However, if you’ve broken the links in a document once in Word 2010, the Edit Link to Files option disappears from the Info box.

In Word 2010, when you choose Insert, Picture, Link to File, an InlineShape of the type wdInlineShapeLinkedPicture is inserted. In Word 2003 and earlier, you got a field of the type IncludePicture, and you could work with this by revealing the field codes using Alt-F9.

Luckily, there are a few ways around this problem. First, if you’re still in Word 2007 and make heavy use of this option, think twice before upgrading. The second option is to change the default type of the document you save in Word 2010. As in Word 2007, you can change the default file type to be Word 2003 compatible. If you do this, Word 2010 changes the way it embeds the image and goes back to using the old IncludePicture field type. You can change the default document type to be Word 2003 compatible by choosing Options from the File menu. Choose Save from the panel at the left and set the ‘Save files in this format’ box as ‘Word 97-2003 document’.

If you don’t want to do this (or can’t), you can alter the way images are inserted. Don’t choose Insert, Picture. Use Insert, Quick Parts, Field, IncludePicture. This inserts the picture in the old way as a field. You can use Alt-F9 to reveal the field codes and change the images to be embedded rather than linked. If you’re working with other people’s files that have images inserted in the ‘wrong’ way, you can break the links using a macro like this:

Sub breaklinks()
With ActiveDocument
For i = .Fields.Count To 1 Step -1
If .Fields(i).Type =
wdFieldIncludePicture Then
End If
Next i
End With
End Sub

The macro is quite simple. It looks through all the fields in the document, starting at the end (fields.count), and if the field type is wdFieldIncludePicture, the field is Unlinked. It’s important that the loop goes from the last field in the document to the first  the act of unlinking the picture removes the field code so there is one fewer field and the loop runs out of fields to check if it counts upwards.


1 comentarios :