
[英]VBA cannot scale images from ppt handout files with apsect ratio, i need to get image Scalewidth scaling factor and set ScaleHeight to this
[英]ScaleHeight and ScaleWidth of InlineShape Always Return 0
在我的Word VBA宏中,InlineShape對象的ScaleHeight和ScaleWidth始終返回0,無論在實際對象中設置了哪個值。
設置值可以正常工作。 但是獲取值始終返回0。如何使用VBA獲取ScaleHeight和ScaleWidth的正確值?
Dim targetShape As InlineShape
Set targetShape = Selection.InlineShapes(1)
debug.Print targetShape.ScaleHeight
debug.Print targetShape.ScaleWidth
Result:0,0
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.