DD1103YF
1.输入:

2.算法:
Sub DeletePic()
Dim SelSlide As Slide
Dim SelPicName As String
If ActiveWindow.Selection.Type = ppSelectionNone Then
MsgBox (” please choice a picture! “)
Else
SelPicName = ActiveWindow.Selection.ShapeRange.Name
If vbYes = MsgBox(” are you sure delete the picture with the same name of “” + SelPicName + ” ” ?”, vbYesNo, ” information! “) Then
For Each SelSlide In ActivePresentation.Slides
On Error Resume Next
SelSlide.Shapes(SelPicName).Delete
Next
End If
End If
End Sub
操作步骤:
打开ppt2019;随意起一个宏名字,创建宏;删除全部内容;复制代码到编辑器中;关闭宏,回到PPT,选择一张图片;选择宏,运行即可;文字水印使用替换功能即可
3.输出:

© 版权声明
文章版权归作者所有,未经允许请勿转载。如内容涉嫌侵权,请在本页底部进入<联系我们>进行举报投诉!
THE END
















暂无评论内容