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.
- My macro that I wrote is probably poorly written and could be causing it, see below for more details.
- I'm saving the nametags in dropbox.
- 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.