Results 1 to 2 of 2

Limit delete option in VBA

Threaded View

  1. #1
    Registered User
    Join Date
    04-12-2015
    Location
    Den Haag, Nederland
    MS-Off Ver
    Win7
    Posts
    3

    Limit delete option in VBA

    Hello Profs,

    Who knows how to limit the code to delete only .jpg files in a XLS?

    Sub DeleteAllPics()
    With Worksheets("sheet1")
    .Unprotect ""
    
    Dim pic As Object
    For Each pic In ActiveSheet.Pictures
    pic.Delete
    Next pic
      .Protect ""
    End With
    End Sub
    Last edited by Leith Ross; 05-03-2015 at 04:41 PM. Reason: Added Code Tags

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Format axis upper and lower limit option missing
    By nosense in forum Excel General
    Replies: 13
    Last Post: 02-24-2015, 01:25 PM
  2. Make entire column limit character size and delete extras
    By OldLadyStillLearning in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2015, 02:42 PM
  3. Replies: 1
    Last Post: 11-30-2013, 06:37 AM
  4. [SOLVED] Delete unused rows or limit worksheet to only filled in cells?
    By youngtusk87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2012, 01:03 AM
  5. Replies: 1
    Last Post: 01-13-2011, 02:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1