- 帖子
- 32
- 主題
- 7
- 精華
- 0
- 積分
- 50
- 點名
- 0
- 作業系統
- win7
- 軟體版本
- 2011
- 閱讀權限
- 20
- 性別
- 男
- 註冊時間
- 2011-12-13
- 最後登錄
- 2014-7-8
|
4#
發表於 2012-1-11 13:15
| 只看該作者
回復 3# user999
應該在一開始create shape時就把name設定好,之後就可以用name來access shape,如下,
With ActiveSheet.Shapes.AddShape(msoShapeRectangle, xbeg_075, ybeg_075, width_075, height_075)
.Name = ''你取的名字"
.Placement = xlFreeFloating
.Line.Weight = 0
.Fill.ForeColor.RGB = RGB(255, 255, 255)
End With
Activesheet.shapes(''你取的名字") 就會是你要的shape,
提醒你 shape name 的字數最多只能 31 字。
BR,
Jarod |
|