Using VBA to change Picture

后端 未结 10 1006
庸人自扰
庸人自扰 2020-12-10 12:41

I am trying to use VBA to automate the Change Picture function when you right click a Shape in Excel/Word/Powerpoint.

However, I am not able to find any reference, c

10条回答
  •  一生所求
    2020-12-10 13:04

    i use this code :

    Sub changePic(oshp As shape)
        Dim osld As Slide
        Set osld = oshp.Parent
        osld.Shapes("ltkGambar").Fill.UserPicture (ActivePresentation.Path & "\" & oshp.Name & ".png")
    End Sub
    

提交回复
热议问题