返回列表 上一主題 發帖

刪圖片不刪按鈕

回復 1# jesscc


    給你參考,.Type=8=>按鈕
    Dim shap As Shape
    For Each shap In .Shapes
        If shap.Type <> 8 Then
            shap.Delete
        End If
    Next

TOP

回復 3# jesscc


    那就12試試
If shap.Type <>12 Then

TOP

本帖最後由 lpk187 於 2016-7-22 23:17 編輯

回復 3# jesscc


    若不知type為何可以利用下列代碼,以逐行執行來找出TYPE

With Sheets("貼圖")
    Dim xx
    Dim shap As Shape
    For Each shap In .Shapes
        xx = shap.Type
        xx = shap.Name
    Next
End With

TOP

        靜思自在 : 要比誰更受誰.不要比誰更怕誰。
返回列表 上一主題