+ Reply to Thread
Results 1 to 4 of 4

deleting picture (shape)

  1. #1
    Forum Contributor
    Join Date
    06-21-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    179

    deleting picture (shape)

    Hello Gurus,

    The user of this spreadsheet inserts data and pastes a picture in the a specific place. Example cell AJ4

    Sometimes the user copies the spreadsheet and deletes the picture and adds another.

    I am looking to create a macro that deletes the picture automatically (and perform some other functions).

    Below is the recorded code for deleting that picture in the spreadsheet. However, the name "Picture 2" is constantly changing, therefore the code cannot specifically say "picture 2"


    Please Login or Register  to view this content.
    How do I get around this?

    TIA,
    Tim

  2. #2
    Registered User
    Join Date
    11-16-2013
    Location
    OK
    MS-Off Ver
    Excel 2013
    Posts
    33

    Re: deleting picture (shape)

    Is there only one picture? If so, would a quick for/each work?

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-21-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: deleting picture (shape)

    No there are a total of 3. I am looking to delete one in a particular location cell AJ4.

  4. #4
    Forum Contributor
    Join Date
    06-21-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: deleting picture (shape)

    I figured it out.

    Due to the complexity of this spread sheet, I eliminated some details when I posted the original question.

    Solution in a nutshell:
    When the picture is placed, I rename it to "Picture X". When running the macro, "Picture X" is deleted and a new picture is placed and renamed "Picture X". This was the only way I could keep the name the same.

    Tim

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] vba import picture change shape to rectangle
    By alexshaw76 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2014, 01:01 PM
  2. Adding Picture to Shape
    By ando185 in forum Excel General
    Replies: 0
    Last Post: 06-25-2013, 03:27 PM
  3. Inserting a Picture into Shape Quickly
    By ando185 in forum Excel General
    Replies: 3
    Last Post: 06-20-2013, 06:40 PM
  4. [SOLVED] Clear Contents of Shape Without Deleting Shape
    By AlvaroSiza in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-17-2012, 09:00 AM
  5. Shape/picture name in a worksheet
    By neta in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-29-2006, 11:00 AM

Tags for this Thread

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