1
我想循環顯示excel文件中圖表中的所有形狀。 這工作原則與vba:測試形狀是否包含文本框
Dim currChart As Chart
Set currChart = Sheets("Diagramm 1")
Dim sShapes As Shape
For Each sShapes In currChart.Shapes
Debug.Print sShapes.name
Debug.Print sShapes.TextFrame.Characters.Text
Next sShapes
但是,屬性TextFrame
並非所有類型的形狀而聞名。因此我想測試一個形狀是否有文本框。我怎樣才能做到這一點?
好一個+ 1 :) – 2013-04-24 11:55:28