+ Reply to Thread
Results 1 to 6 of 6

Show picture of cell in Userform

  1. #1
    Registered User
    Join Date
    08-02-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    37

    Show picture of cell in Userform

    Hi all,

    I was wondering if one can show a picture of a cell in a userform.

    You can take a picture of a cell (select the cell > copy > paste special > picture) and you can show pictures in userforms, I just don't know how I can show the picture of that cell in a userform.

    The reason why I want to show the cell-content in a picture and not in a textbox is because the cell is formatted and I don't want to lose the formatting when showing the text in the userform. The text does not have to be adjustable.

    Anyone knows how to do this?

    Cheers

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

    Re: Show picture of cell in Userform

    Copy the range using "Ctrl +C"
    Paste into Userform properties list , against "Picture" , using "Ctrl +V"

  3. #3
    Registered User
    Join Date
    08-02-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Show picture of cell in Userform

    Hi MickG,

    And how can I do this for multiple cells?

    The idea is that you would call a userform for a specific row and that you would see a cell depicted specifically for that row. So the picture will be different everytime the userform would be called.

    I was thinking to, when the userform is called, copy-paste the corresponding cell in another column and use the new cell containing the actual picture to fill the picture in the userform. You know perhaps how to do this? Put a picture that is in a cell into a userform?

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430

    Re: Show picture of cell in Userform

    See PastePicture example
    http://www.oaltd.co.uk/Excel/Default.htm
    Cheers
    Andy
    www.andypope.info

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

    Re: Show picture of cell in Userform

    The example Below Creates a file which is held on "Thisworkbook.path" ,using the Camera tool.
    When opening the "Userform" you select a range from the dropdown and the code will fill the "Image"Control on the U'Form.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-02-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Show picture of cell in Userform

    Thanks guys! Works like a charm!

+ 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. Show picture from webpage on userform
    By LoveCandle in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 08-01-2017, 11:31 AM
  2. Show picture by clicking on a cell
    By ossa in forum Excel General
    Replies: 13
    Last Post: 05-13-2015, 10:49 AM
  3. [SOLVED] show jpeg picture inside a userform image control box
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 07-29-2013, 03:44 PM
  4. [SOLVED] Show Picture in UserForm contained within Embedded Worksheet.
    By Environment in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-26-2013, 04:34 AM
  5. UserForm;Listbox Select Show Picture
    By samsara in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-08-2009, 09:48 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