回復 5#oobird
大大
後來~ 我使用IF P.TYPE<>13 THEN GOTO的方式,排除掉問題
下面的程式碼修改/執行後沒有問題
A = Sheet1.Range("C65536").End(xlUp).Row
Sheet1.Rows("2:" & A).RowHeight = 81
Sheet1.Columns("E:E").ColumnWidth = 12.88
Dim p As Shape
With Sheet1
For Each p In .Shapes
If p.Type <> 13 Then GoTo 1
R = R + 1
p.Name = R
1
Next
For Each p In .Shapes
If p.Type <> 13 Then GoTo 2
R = p.TopLeftCell.Row
p.Name = .Cells(R, 3).Value
p.Top = .Cells(R, 5).Top
p.Left = .Cells(R, 5).Left
p.LockAspectRatio = msoFalse
p.Height = 75
p.Width = 73.5
2
Next