+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : test if picture exists on sheet

  1. #1
    Registered User
    Join Date
    08-04-2009
    Location
    Golborne England
    MS-Off Ver
    2013
    Posts
    85

    test if picture exists on sheet

    Hi All,

    I am working on a project and have a named picture on a sheet that gets replaced when the user changes the product viewed. If the picture gets deleted manually by the user or the previous product did not have an image the macro falls over when the clear old picture section in reached. I need to test for the existance of the old picture on the sheet to determine if I need to run the clear/delete existing picture before inserting the new one. Any ideas would help alot

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    Re: Excel 2007 : test if picture exists on sheet

    Hi Jim

    Here is the code I've used in a project with a similar goal.
    It checks all images on the sheet and deletes only the one(s) with the specified name 'Meet_Logo' in my example below.

    Please Login or Register  to view this content.
    Hope this helps a bit.
    - Stu

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: test if picture exists on sheet

    Another way:

    Please Login or Register  to view this content.
    ... or

    Please Login or Register  to view this content.
    Last edited by shg; 12-28-2014 at 08:28 PM.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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