+ Reply to Thread
Results 1 to 5 of 5

Making referenced pictures disapear when input cells are empty

  1. #1
    Registered User
    Join Date
    02-19-2009
    Location
    VA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Making referenced pictures disapear when input cells are empty

    I am very close to being finished, but need a little more help.


    Looking at the attached spreadsheet.....

    I have code set up in the 'OVERALL' tab as well as Module1 that allows me to display a given picture based on the information in columns R and S. (R and S are combined in column AZ, and rows 28 and 40 are doing a Vlookup using this information)

    This is working great! The only issue I have is that a picture is being displayed regardless of whether there is information or not.

    I want to 'NOT" display a picture if column AZ's value does not equal any of the pictures listed on the 'REF' tab.


    (Note: I have only added pictures for the P2 configurations right now.)


    As always, any and all help is greatly appreciated.

    Regards,
    Shawn
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Making referenced pictures disapear when input cells are empty

    Hello fourwhls,

    I am not sure about how you want these pictures displayed. Currently, they are all in a single row and the designations are in column "AZ". Is a picture to be visible whenever any single designation for that picture appears in column "AZ"? Is it to remain in its current position in that single row?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    02-19-2009
    Location
    VA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Making referenced pictures disapear when input cells are empty

    Here is the code in module 1

    Please Login or Register  to view this content.

    I assume that I need to change this line "On Error Resume Next", but I'm not quite sure what to change it to.

    I assume it needs to be "On Error Goto ....." and then put in another section of code that bypasses the picture process.


    Am I going in the right direction?

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Making referenced pictures disapear when input cells are empty

    Hello fourwhls,

    The pictures are part of the Excel Pictures collection. Each collection is unique to each worksheet. You can access a picture like this...
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-19-2009
    Location
    VA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Making referenced pictures disapear when input cells are empty

    Quote Originally Posted by Leith Ross View Post
    Hello fourwhls,

    I am not sure about how you want these pictures displayed. Currently, they are all in a single row and the designations are in column "AZ". Is a picture to be visible whenever any single designation for that picture appears in column "AZ"? Is it to remain in its current position in that single row?
    The pictures need to stay in their respective location, as they are now.


    To answer the other question, I will list some scenarios....

    If AZxx= R2RL ------> The R2RL picture will be displayed
    If AZxx= R2__ ------> No picture will be displayed
    If AZxx= __RL ------> No picture will be displayed
    If AZxx is blank ------> No picture will be displayed


    I hope that makes sense.

+ 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