Hi,
With regard to the macro for ppt, I find example macro in below site.
https://msdn.microsoft.com/ko-kr/library/office/ff745953.aspx
Set myDocument = ActivePresentation.Slides(1)
myDocument.Shapes.AddPicture FileName:="c:\microsoft office\" & _
"clipart\music.bmp", LinkToFile:=msoTrue, SaveWithDocument:=msoTrue, _
Left:=100, Top:=100, Width:=70, Height:=70
If the file location of ppt file including above macro and bmp file is changed, Do I have to modify the FileName(red text) every time the location of the ppt file changes?
If yes, there is no way a more comfortable?
I would like to know the other method on the assumption that the ppt and bmp file are always saved same folder.
Happy New Year!
With regard to the macro for ppt, I find example macro in below site.
https://msdn.microsoft.com/ko-kr/library/office/ff745953.aspx
Set myDocument = ActivePresentation.Slides(1)
myDocument.Shapes.AddPicture FileName:="c:\microsoft office\" & _
"clipart\music.bmp", LinkToFile:=msoTrue, SaveWithDocument:=msoTrue, _
Left:=100, Top:=100, Width:=70, Height:=70
If the file location of ppt file including above macro and bmp file is changed, Do I have to modify the FileName(red text) every time the location of the ppt file changes?
If yes, there is no way a more comfortable?
I would like to know the other method on the assumption that the ppt and bmp file are always saved same folder.
Happy New Year!