Thread: [Solved] Word 2010 mismatched images
View Single Post
 
Old 07-16-2012, 12:42 PM
The Orange The Orange is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Jul 2012
Posts: 5
The Orange is on a distinguished road
Default Word 2010 mismatched images

I'm working with Word 2010 to put together some nametags. Each set of nametags contains anywhere from 300 - 600 names. I take the images out of an image in paint and put them into Word onto the nametags.

Everything was working fine until lately, where this strange issue started showing up: In a large majority of my files, the first 1 - 15 images would actually be other random images from the document.

To clarify, the first few show the images they're supposed to be, yet when I print them they display a different image. Also, if I double click the image to open in paint, it shows the wrong image as well.

Here's a screenshot of what's happening:


I think I've narrowed this down to one of three things.
  1. My macro that I wrote is probably poorly written and could be causing it, see below for more details.
  2. I'm saving the nametags in dropbox.
  3. Word freezes up for a few minutes whenever I save, it could be corrupting the file during that frozen period. I have a strong core i5 cpu, so it's definately word, not me causing the freezing.

Here's the macro I've been using:
Code:
Sub FormatPicture()    
    Selection.PasteSpecial Link:=False, Placement:=wdWrapTight, _
        DisplayAsIcon:=False

    With Selection.ShapeRange
        .LockAspectRatio = msoTrue

        .Height = InchesToPoints(1.4)
        
        .WrapFormat.Type = wdWrapTight
        
        .IncrementLeft 50
        .IncrementTop -5
    End With

End Sub
Any help would be great. Thank you in advance.
Reply With Quote