+ Reply to Thread
Results 1 to 11 of 11

If statement, TRUE , FALSE => If true show picture 1 else show picture 2

  1. #1
    Registered User
    Join Date
    12-07-2007
    Posts
    27

    1st cell:=IF(10<1000,"Case A","Case B") 2nd cell Show picture of Case A else B

    Hello guys this is my 1st post im working on a mechanical project , I need to do some modifications to my XLS file that i aint familair with.

    \1
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    12-07-2007
    Posts
    27

    If statement, TRUE , FALSE => If true show picture 1 else show picture 2

    Does anyone know how is that done or does anyone have an example file ?

  3. #3
    Registered User
    Join Date
    12-07-2007
    Posts
    27

    =IF(I11<E3,"Drawing 1","Drawing 2 (and) show picture 1 else show picture 2

    Does anyone have any example on how it is done thanx ..

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Threads merged. Please do not post the same question in two forums.

  5. #5
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Hi uae,

    You cannot hide/show pictures with worksheet formulas. You would need to use vba code to do so.

    Something like the following sounds close to what you're after:
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-07-2007
    Posts
    27
    Thanx buddy, here is an example of what im trying to do:

    http://aycu36.webshots.com/image/348...0572870_rs.jpg

    Please find the XLS file from the basket below.
    Attached Files Attached Files

  7. #7
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Try adding this code to your Sheet1 code:
    Please Login or Register  to view this content.
    Your picture's names in Excel are 'Picture 9' and 'Picture 13' (if you click on them, you'll see their names in the Name box (above and to the left of cell A1).

  8. #8
    Registered User
    Join Date
    12-07-2007
    Posts
    27
    Thanx a million + a million More it worked :-)

  9. #9
    Registered User
    Join Date
    12-07-2007
    Posts
    27
    Hey buddy is there an easier way to know the exact location after moving the pictures around. I play with the values so most of the time its ( trial and error). If you have an easier way to retrieve the .top & .left value please share.

    Please Login or Register  to view this content.
    Thanx in advance.

  10. #10
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Hi uae,

    Place the following code into your workbook:
    Please Login or Register  to view this content.
    Then, to find a specific image's location:
    1. Click on the image to see it's actual name (in the Name box), e.g. Picture 13
    2. In cell A1, type that name as shown, including spaces
    3. Press ALT+F8 and select the 'getPicLocation' macro.

    A message box will pop up with the Top and Left values of that image. If you move the image and then run the macro again, it will tell you the new location. (If you don't want to use cell A1, use another cell but change the code to reflect that.)

    Hope that helps.

  11. #11
    Registered User
    Join Date
    12-07-2007
    Posts
    27
    Thanx it worked.

+ 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