Deleting pictures with Excel VBA

Arlen Beiler picture Arlen Beiler · Dec 18, 2010 · Viewed 73.8k times · Source

How do I delete all the pictures in an Excel 2007 worksheet? A working code example would be great.

Answer

jony picture jony · Aug 10, 2015

The simplest way:

Activesheet.Pictures.Delete

or

Activesheet.Shapes.Delete

Depending on the type of object your picture is.

Deletes all pictures with greater efficiency then iterating (looping through) and deleting them one by one.