Solved

Excel 2013 VBA - Delete all pictures from a sheet

Posted on 2016-08-10
4
53 Views
Last Modified: 2016-08-10
Dear Experts,

I have a file which contains a lot of small pictures, could you please advise which VBA code could delete all of them from the sheet?

Thanks in advance,
0
Comment
Question by:csehz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 33

Assisted Solution

by:Rob Henson
Rob Henson earned 250 total points
ID: 41749984
Is it all Objects on the sheet that are to be deleted?

If so:

ActiveSheet.DrawingObjects.Select
Selection.Delete

Thanks
Rob H
0
 
LVL 30

Accepted Solution

by:
Subodh Tiwari (Neeraj) earned 250 total points
ID: 41749991
Only this is suffice...

Sub DeletePictures()
ActiveSheet.DrawingObjects.Delete
End Sub

Open in new window

0
 
LVL 1

Author Closing Comment

by:csehz
ID: 41749995
Thanks very much
0
 
LVL 30

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41750000
You're welcome. Glad to help.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question