Y
Yeager
I'm using the following little snippet of code to resize
all of the inline shapes in my document:
Dim objDoc As Document
Dim oPic As InlineShape
Set objDoc = ActiveDocument
For Each oPic In objDoc.InlineShapes
oPic.LockAspectRatio = msoFalse
oPic.Height = 23
oPic.Width = 62
Next oPic
However, I'm not having any luck KEEPING the pics
resized. If I save the document and then open it again,
it as if I never resized the pics at all. I poked around
the MVP FAQ and the knowledge base and found some things
that resembled this problem, but they say that it was a
bug in Word 97. I'm running 2000. Any idea what I'm
doing wrong here? How do I force Word to remember the
changes I made to the shape?
-Yeager
all of the inline shapes in my document:
Dim objDoc As Document
Dim oPic As InlineShape
Set objDoc = ActiveDocument
For Each oPic In objDoc.InlineShapes
oPic.LockAspectRatio = msoFalse
oPic.Height = 23
oPic.Width = 62
Next oPic
However, I'm not having any luck KEEPING the pics
resized. If I save the document and then open it again,
it as if I never resized the pics at all. I poked around
the MVP FAQ and the knowledge base and found some things
that resembled this problem, but they say that it was a
bug in Word 97. I'm running 2000. Any idea what I'm
doing wrong here? How do I force Word to remember the
changes I made to the shape?
-Yeager