i have powerpoint presentation vba script update images every week. recently, added 2 additional slides , scripting update images well.
the new images not update , not throw error. if step through procedure, goes correct slide, selects correct shape,
call ppshp.fill.userpicture ("blah_blah.png")
does not replace image.
if copy line 1 of slides work, does.
in example below, first 1 works, second doesn't.
'feol ******************************************************************* activewindow.view.gotoslide (15) set ppshp = activepresentation.slides(15).shapes("feol") ppshp.select call ppshp.fill.userpicture("d:\mit trends\images\feol_composite.png") 'liconsem ******************************************************************* activewindow.view.gotoslide (16) set ppshp = activepresentation.slides(16).shapes("liconsem") ppshp.select call ppshp.fill.userpicture("d:\mit trends\images\liconsem.png")
again, can see go correct slide , select correct shape (named in "arrange" panel). doesn't fill. tried changing shape id, results same. know shape name , image name correct. tried cut/paste sure.
using image first section fill in second not work. using image second section fill in first does. feel must missing obvious.
Comments
Post a Comment