+ Reply to Thread
Results 1 to 5 of 5

Display Picture in worksheet

  1. #1
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Display Picture in worksheet

    I have searched thru several posts on this subject.
    But I can't make it work for me. I amnot big on VBA coding, so I need help.
    My problem is relatively simple.
    I have a spreadsheet with annual project financials.
    I would like to look at the year to date profit number and when it reaches a certain goal [% or $$], I would llike to display a picture [.jpg file] on the worksheet.
    On another sheet I have booking numbers by salesperson.
    Again, whichever salesperson reached his/her quota, I would like to display the respective picture.
    The pictures can be inserted to the worksheet [no more than 10 pictures] or they can be retrived from the network.
    Thanks for any help I can get.
    Alan

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Pictures

    Try this :-
    1) Insert "Userform" in VBEditor Window
    2) In VB Editor, Click "View", Click "ToolBox"
    3) Click "Image", Drag Image onto "Userform."
    4) Click Image Block, Click"F4", for "Image Properties" Window.
    5) Double Click "Picture " property, choose picture from your selection, Click "Open"
    6) Size Picture & Userform to Suit.
    7) Close "Image properties".
    8) In "Project- VBAproject" Window, Double Click "ThisWorkbook".
    9) Copy & paste the code below into Window
    10) Adjust the Range, Sum & Userform Name, in Code to suit.
    11) When the Cell values are Equal or greater than your value the picture will show.


    Please Login or Register  to view this content.
    Regards Mick
    Last edited by MickG; 11-30-2007 at 12:29 PM.

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Here's an alternative method

    http://www.mcgimpsey.com/excel/lookuppics.html
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Display Picture Based on a Cell value

    Thanks guys for responding.
    I like mcgimpsey's solution.
    But I have a question.
    His excel sheet has four pictures named Picture 1, Picture 2 etc.
    How do I look at that list?
    Where are these picture assigned?
    I tried assigning my pictures to the worksheet and change the names on his worksheet, but it doesn't work.
    I would appreciate some explanation on how and where his worksheet looks for those picture filenames.

    Thanks,
    Alan

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe this link may be better

    http://www.contextures.com/excelfilesRon.html#RCH0002


    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ 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