D
Derek
Hi,
I'm trying to loop through all the inlineshapes in a MS Word 2010
document and convert them to jpg (to make the file size smaller).
However, when I try to select the inlineshape, it is always the first
inlineshape that is selected. It never moves to the next inlineshape.
Also, the macro never finishes...
Thanks,
Derek
Sub PasteAsJPEG()
'
' Cut each picture and paste it back in as a JPEG
'
Dim Pic As InlineShape
For Each Pic In ActiveDocument.InlineShapes
Pic.Select
With Selection
.Cut
.PasteSpecial DataType:=15
End With
Next Pic
End Sub
I'm trying to loop through all the inlineshapes in a MS Word 2010
document and convert them to jpg (to make the file size smaller).
However, when I try to select the inlineshape, it is always the first
inlineshape that is selected. It never moves to the next inlineshape.
Also, the macro never finishes...
Thanks,
Derek
Sub PasteAsJPEG()
'
' Cut each picture and paste it back in as a JPEG
'
Dim Pic As InlineShape
For Each Pic In ActiveDocument.InlineShapes
Pic.Select
With Selection
.Cut
.PasteSpecial DataType:=15
End With
Next Pic
End Sub