簡體   English   中英

InlineShape的ScaleHeight和ScaleWidth始終返回0

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM