Image control embeds a picture such as a jpg, jpeg, gif, png, bitmap, etc. It can be used on the WorkSheet. You can see how it works and more details about ActiveX Image Control on the Worksheet in the following chapter.

Image Excel ActiveX Control Object

VBA ActiveX Image Control on the Worksheet

Please find more details about VBA ActiveX Image Control on the Worksheet.

    1. Go To Developer Tab and then click Insert from the Controls
    2. Click on the Image_control from the ActiveX Controls group.
    3. Drag the control on the Worksheet.
    4. Right click on the Image_control, before that Design Mode should be turned ON.
    5. Click on properties from the available list.
    6. On the left side find ‘Picture’ from the available properties of the control.
    7. On the right side click on that, and select image from the source.
    8. On the left side find ‘PictureSizeMode’ from the available properties of the control.
    9. On the right side, select ‘1 – frmPictureSiseModeStretch’ from the available list.
    10. Now, you can see the following output as shown below in the screen shot.

Image Control Excel VBA ActiveX Control4

Delete Image Control on the Worksheet using VBA

Please find the below code, it will show you how to delete or remove the control on the worksheet. In the below example, its deleting the Image named ‘Image1’ which is on the worksheet named ‘Sheet11’. Where Delete is the property of Shape object.

Sub Delete_Image()
    Sheets("Sheet11").Shapes("Image1").Delete
End Sub
120+ Professional Project Management Templates!
Save Up to 85% LIMITED TIME OFFER

A Powerful & Multi-purpose Templates for project management. Now seamlessly manage your projects, tasks, meetings, presentations, teams, customers, stakeholders and time. This page describes all the amazing new features and options that come with our premium templates.

Browse All Templates
Excel VBA Project Management Templates

All-in-One Pack
120+ Project Management
Premium Templates
View Details

Essential Pack
50+ Project Management
Premium Templates
View Details
50+ Excel
Project Management
Templates Pack
View Details
50+ PowerPoint
Project Management
Templates Pack
View Details
25+ MS Word
Project Management
Templates Pack
View Details
Ultimate Project Management Template
View Details
Ultimate Resource Management Template
View Details
Project Portfolio Management Templates
View Details

Share This Story, Choose Your Platform!

Leave A Comment