About
Pricing
Community
Teams
Start Free Trial
Log in
jnash67
asked on
2/25/2009
How can I programmatically change the image of an existing picture in an Excel sheet with the image from a new gif file
I have a picture object in a sheet. I need to have a different image there depending on some conditions. I have tried changing it with:
reportSheet.Pictures("Logo
") = LoadPicture("C:\Temp\New Logo.gif")
But the object doesn't seem to support this. How can I do this?
Visual Basic Classic
Microsoft Excel
4
1
Last Comment
Rory Archibald
8/22/2022 - Mon
Hitesh Manglani
2/25/2009
see this link if it helps
https://www.experts-exchange.com/questions/23235957/My-picture-does-not-want-to-change-for-no-reason.html
Rory Archibald
2/25/2009
If you are using a picture from the Drawing toolbar, you could just delete it and add a new one?
jnash67
2/25/2009
ASKER
Rory -- how would I do this while maintaining the exact size and location of the existing image?
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
Rory Archibald
2/25/2009
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
https://www.experts-exchange.com/questions/23235957/My-picture-does-not-want-to-change-for-no-reason.html