ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Remove picture from Image Control? (https://www.excelbanter.com/excel-programming/358454-remove-picture-image-control.html)

Jon[_22_]

Remove picture from Image Control?
 
I have a few blank Image Controls on a form. When a command button is
clicked, a picture is assigned to the Image Controls. When the command
button is clicked again, I would like all of the Image Controls to
"reset" back to being blank (ie no picture assigned). Anyone have an
idea how to remove an assigned picture from an image control?

Thanks.


Jon[_22_]

Remove picture from Image Control?
 
I had to dig around awhile, but I finally found the answer:

Object.Picture = LoadPicture("")

So simple.



All times are GMT +1. The time now is 06:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com