Search code examples
vbaexcel-2007

Deleting pictures with Excel VBA


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


Solution

  • Dim shape As Excel.shape
    
    For Each shape In ActiveSheet.Shapes
            shape.Delete
    Next