+ Reply to Thread
Results 1 to 6 of 6

Make picture visible if cell is not empty

  1. #1
    Forum Contributor
    Join Date
    04-14-2014
    Location
    Philippines
    MS-Off Ver
    2007, 2010, 2013, 2016.
    Posts
    169

    Make picture visible if cell is not empty

    HI

    Is it possible to make a png picture with macro assigned visible or invisible base on a single cell?
    say "A1", if empty, the picture will not be visible and if A1 <>"", picture become visible ready to be clicked and carry out assigned task.
    please note that i am not using active X command button with inserted picture
    but png picture with macro assigned. if it's possible, need vba help. thanks.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Make picture visible if cell is not empty

    It would be easier to help and test possible solutions if you could attach a copy of your file. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary). See the yellow banner at the top of this page for instructions to attach a file.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Contributor
    Join Date
    04-14-2014
    Location
    Philippines
    MS-Off Ver
    2007, 2010, 2013, 2016.
    Posts
    169

    Re: Make picture visible if cell is not empty

    File attached. Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Make picture visible if cell is not empty

    Copy and paste this macro into the worksheet code module. Do the following: right click the tab name for your sheet and click 'View Code'. Paste the macro into the empty code window that opens up. Close the code window to return to your sheet. Enter data in A1 and press the RETURN key or if A1 is not empty, delete the contents.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    04-14-2014
    Location
    Philippines
    MS-Off Ver
    2007, 2010, 2013, 2016.
    Posts
    169

    Re: Make picture visible if cell is not empty

    Mumps1
    Thanks for the code. it work.
    quick question,
    why picture 3? ActiveSheet.Shapes.Range(Array("Picture 3")).Visible = Target <> ""
    Thanks.

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Make picture visible if cell is not empty

    You are very welcome. "Picture 3" is the name of the picture you inserted.

+ 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. How to check if a cell is empty or has a picture?
    By suresh448online in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2016, 01:52 AM
  2. Replies: 0
    Last Post: 02-10-2014, 12:29 PM
  3. I need a cell to make a picture pop-up
    By AeroTheManiac in forum Excel General
    Replies: 2
    Last Post: 01-17-2014, 03:32 PM
  4. Help to make a single picture visible when all pictures are set to be hidden
    By Gowen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-03-2010, 03:45 PM
  5. Replies: 5
    Last Post: 04-23-2010, 07:32 AM
  6. make a cell only visible if a given cell is empty?
    By philthemn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-25-2009, 10:03 AM
  7. how to make visible formula in cell?
    By AivarasBakanas in forum Excel General
    Replies: 2
    Last Post: 06-15-2007, 08:12 AM

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