I have an image in my worksheet I want to fade out.
I am tying to set different stages of transparency for the image:
Set myPicture = ActiveSheet.Pictures.Insert(pic)
With myPicture
.Transparency = 0.5
Application.Wait (Now + TimeValue("00:00:01"))
.Transparency = 0.3
Application.Wait (Now + TimeValue("00:00:01"))
.Transparency = 0.1
Application.Wait (Now + TimeValue("00:00:01"))
.Delete
End With
I get an error message.
object not supported
It took me a long time to get this to work (until I tried the
DoEvents
)It works on an AutoShape I place on the sheet.
NOTE:
You must adjust the 100 to adjust the fade-in / fade-out speed.
EDIT#1:
Here is some junk code (based on the Recorder) for dropping an AutoShape on a sheet and filling it with a Picture:
Remember to Name the Shape and use that Name in all the codes that reference that Shape.