G
George Lee
We (finally) upgraded to Office 2007 and some macros that had been running in
Word 2003 for months have stopped. The problem is that the
inlineshape.ScaleHeight and inlineshape.ScaleWidth properties now always
return zero (0). In Googling the answer, some had posted this very question
but there has never been a good reply. Does anyone know what this might
return zero (0)?
The code may not be useful:
Dim myGraphic As Word.InlineShape
Set myGraphic = gTargetDoc.InlineShapes.AddPicture(fileName:=myFileName,
Range:=gTargetDoc.Windows(1).Selection.Range)
In this case, myGraphic.Height=468, myGraphic.Width=605 but
myGraphic.ScaleHeight=0 and myGraphic.ScaleWidth=0.
Word 2003 for months have stopped. The problem is that the
inlineshape.ScaleHeight and inlineshape.ScaleWidth properties now always
return zero (0). In Googling the answer, some had posted this very question
but there has never been a good reply. Does anyone know what this might
return zero (0)?
The code may not be useful:
Dim myGraphic As Word.InlineShape
Set myGraphic = gTargetDoc.InlineShapes.AddPicture(fileName:=myFileName,
Range:=gTargetDoc.Windows(1).Selection.Range)
In this case, myGraphic.Height=468, myGraphic.Width=605 but
myGraphic.ScaleHeight=0 and myGraphic.ScaleWidth=0.