+ Reply to Thread
Results 1 to 4 of 4

Images based on input values.

  1. #1
    Registered User
    Join Date
    07-01-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    21

    Images based on input values.

    Hi All, been looking around on the net for an answer to this. Have found some stuff thats close, but not getting me there.

    I have an input for and one of the inputs it asks for is shaft diameter. The shaft diameter can range from .2 to 6.7. I also have 5 pictures and the spreadsheet needs to determine the proper picture (based on shaft Ø) and then display it. For example

    If shaft Ø is .450, then show pic1.
    If shaft Ø is 2.5, then show pic 3.

    My initial attempt at this was to use a big if, then, else statement, but it did not work and I dont think its an efficient way to go about this anyway.

    Here is part of what that looked like.

    Please Login or Register  to view this content.
    I need to test what interval "shaftval" falls into and then display the corresponding image for that value, and if shaftval isnt in that interval, then see if its in the next one.

    Thanks.

  2. #2
    Registered User
    Join Date
    07-01-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    21

    Re: Images based on input values.

    Im thinking this may need to be done with an array, but havent got it working yet.

  3. #3
    Registered User
    Join Date
    07-01-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    21

    Re: Images based on input values.

    Any suggestions?

  4. #4
    Registered User
    Join Date
    07-01-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    21

    Re: Images based on input values.

    Ok...although ugly, im back to using if,then statements. Here is what I have.

    Please Login or Register  to view this content.
    Im getting runtime error 424 in the 2nd if,then statement. Can anyone help with that?

    Ive double checked and the sheet is named "drawings" and the image that I want to copy is named "crimp1", so Im not sure what its looking for.
    Last edited by cole.young; 08-13-2014 at 05:15 PM.

+ 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. Incremental values based on user input
    By hanumanthindirala in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-18-2013, 02:34 PM
  2. Adding values to different cells based on input
    By MaXxZa in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-21-2011, 01:08 PM
  3. Pull values from input based on multiple criteria
    By chitownsox14 in forum Excel General
    Replies: 3
    Last Post: 04-05-2011, 02:17 PM
  4. Formula to Populate table based on 3 input values
    By Senthilerp in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-18-2009, 01:19 AM
  5. SUMPRODUCT Based on Input Values
    By doggod7756 in forum Excel General
    Replies: 7
    Last Post: 02-12-2009, 06:00 AM

Tags for this Thread

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