+ Reply to Thread
Results 1 to 10 of 10

Picture problem

  1. #1
    Registered User
    Join Date
    07-24-2007
    Posts
    8

    Picture problem

    I have a sheet that I use to store machine process data. The way it works is on a main sheet I select the job I need to run and the machine I want to run it in. The sheet adjusts the process to match the machine basicly volumetric formulas and all that works great no problems. But what I would like to do is when I choose a job I would like excel to display a couple pf pictures such as a picture of the part, a picture of the machine with that job set-up in it that kind of thing. Each time I pick a new job the pictures would change with the data.

    Is there a simple way to pull this off?

    Thanks

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Picture problem

    There are a few ways to accomplish what you're asking for, depending on the set-up you prefer.

    Let's start with some basic questions:
    Do you want to pull the pictures from a folder library or store them all in the workbook? If it's only a few pictures, the workbook method might be attractive. But if there are many, the workbook could become unnecessarily bloated with picture files.

    How many pictures do you anticipate displaying per job?

    That's all for now....
    Meanwhile, here are a couple links that demonstate two alternatives:

    Using a Folder Library:
    See the ShowFolderPics file at this link:
    http://www.contextures.com/excelfilesRon.html#RCH0002

    Using pictures stored in the workbook:
    http://www.mcgimpsey.com/excel/lookuppics.html

    Post back with more questions.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    07-24-2007
    Posts
    8
    The goal would be four pictures sized to fill a 8X11 sheet when printed.

    There are several hunder processes and even more pictures so ideally it would be nice to have all the pictures in a folder on c:\

    IT has asked me not to use macros if I can help it but they will live with them on this if I can't find another way to pull this off.

    BTW the solution should be able to take advantage of the linked cell that already is used to populate the other areas on the various pages if possible.

    Thanks

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Picture problem

    ALWAYS 4 pictures?...or....UP TO 4 pictures?

    I'm envisioning a set up that involves a LookUp table:
    Col_1: JobID (eg J102a)
    Col_2: JobDesc (Replace Kniffle Pin Extender)
    Col_3: Pic_1_Location (eg C:\JobPics\J102a_KPE_Pic.jpg
    Col_3: Pic_2_Location (eg C:\JobPics\J102a_Machine3_Pic.jpg
    Col_3: Pic_3_Location (eg C:\JobPics\J102a_M3_CoverRemoval_Pic.jpg
    Col_3: Pic_4_Location (eg C:\JobPics\J102a_TagSignOff_Pic.jpg

    Using that set up, you could have a Data Validation drop-down list, sourced to either the JobID field or the JobDesc field.

    Any change to the value of that DV cell would trigger a macro that would purge the current 4 pictures and replace them with the 4 that pertain to the job.

    Your thoughts?

  5. #5
    Registered User
    Join Date
    07-24-2007
    Posts
    8
    We can say always four; sounds like that will make things simple.

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Picture problem

    If you don't mind, I'll throw together a Proof of Concept model. We can play with that to get it functional in a basic way. After that, you'll be able to own it and adapt it as necessary.

    (Don't you just love this stuff! I do.)

  7. #7
    Registered User
    Join Date
    07-24-2007
    Posts
    8
    Go Man Go!

  8. #8
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Show Job Pics in Worksheet

    OK, my friend.....Let's see how I did:

    First, a bit of set up
    1) Create this folder:
    C:\JobPicLib

    2) Download the 2 JobPics zip files and extract the 6 stupid pics I posted into that folder.

    3) Download the ShowJobPicsDemo_v1_0_0.zip file

    4) Extract the ShowJobPicsDemo_v1_0_0.xls file and save it.

    Second, a few notes about the file
    1) LU_DisplayName and LU_Name_FileLoc_XRef are Dynamic Range Names. They automatically expand and contract to accommodate the number of jobs listed.

    2) If there are no pics for a Job or the references are invalid...it just removes the previous pics (if there were any)

    3) Use the 1st item in the drop-down list ("(Clear the Form)" to clear the current pictures.

    That's about it.

    Your thoughts?
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-24-2007
    Posts
    8
    That works real nice so we will move forward! Attached is a sreen shot of the main sheet, in red is a combo box that is used to select the job. I use the index function to populate the cells.

    =INDEX(Injection!U3:U400,'NyChange Data'!D1,1)
    =INDEX('Job Data'!F3:F400,'NyChange Data'!D1,1)

    and so on...

    So how do I use my linked cell to give my the goods? I would not sleep if I knew that the people how print this out needed to select the same job from two boxes, it just will not happen they will have pictures for red darts on a process sheet for blue bowls if you know what I mean.

    What do you think?
    Attached Images Attached Images

  10. #10
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Show Job Pics in Worksheet

    The model uses the below named ranges

    Please Login or Register  to view this content.
    See how you do....Post back with more questions.

+ 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