I work in Excel and VBA. I cannot overlay images because I have several sheets with a variable number and there are images on each sheet, so the file will become huge if, say, 20 sheets have all 5 images that I want to animate.
So, I used a combination of these tricks listed here: 1) I inserted the RECTANGLE form in the location and size that I wanted:
ActiveSheet.Shapes.AddShape(msoShapeRectangle, 1024#, 512#, 186#, 130#).Select Selection.Name = "SCOTS_WIZARD" With Selection.ShapeRange.Fill .Visible = msoTrue .UserPicture "G:\Users\ScotLouis\Documents\My Spreadsheets\WordFind Wizard\WordFind Wizard 1.jpg" .TextureTile = msoFalse End With
2) Now, to animate (change) the image, I only need to change the Shape.Fill.UserPicture:
ActiveSheet.Shapes("SCOTS_WIZARD").Fill.UserPicture _ "G:\Users\ScotLouis\Documents\My Spreadsheets\WordFind Wizard\WordFind Wizard 2.jpg"
So, I achieved my goal of having only 1 image per sheet (not 5, as in my animation), and duplicating the sheet only duplicates the active image, so the animation continues without problems with the next image.
source share