+ Reply to Thread
Results 1 to 6 of 6

How to incorporate images into user form.

  1. #1
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    How to incorporate images into user form.

    Hi,

    I'd like to incorporate images into my user form when I select a component from a pull down menu. Does anyone have any good advice on how to start? For example, should I store the images within the excel file itself or ask
    the code to access a different XL file (which already exists and so will negate the need to fill the current XL file!). What's the best way to do this?

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: How to incorporate images into user form.

    You could have the images in a separate folder and select the images from a combobox on the userform

  3. #3
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    Re: How to incorporate images into user form.

    That's what I thought. I've located the folder and got some rudimentary code. I have a drop down menu in the form of a combobox but not sure where i should insert the file, perhaps a frame? What do you think?

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: How to incorporate images into user form.

    Add the "image" control to the Userform

    Then populate the combobox when the userform opens

    Please Login or Register  to view this content.
    Then when you select the picture from the combobox, it will fill the image control

    Please Login or Register  to view this content.
    ImageControl.png

  5. #5
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    Re: How to incorporate images into user form.

    Great, thanks for your input, I'll give it a whirl

  6. #6
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    Re: How to incorporate images into user form.

    Well here's where my limitations kick in. I've got some basic code but I imagine its full of errors. The basic functioning asks the ComboBox1 to access a directory of pictures and load them into ImageBox called Image1Any assistance would be greatly appreciated. Here's the code:

    Please Login or Register  to view this content.
    Last edited by bralew; 09-08-2016 at 05:21 AM.

+ 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. Populate text boxes on user form, from combo box on same user form
    By Richardswaim in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 07-03-2016, 09:35 AM
  2. [SOLVED] User-Form Problem: User can select headers in User Form (I want Header/no way to select)
    By navialivad in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-18-2014, 10:24 AM
  3. [SOLVED] User Form to execute search and return all values to the user form for editing
    By allwrighty in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-11-2013, 10:40 PM
  4. [SOLVED] Excel vba user form- open directly to user form not worksheet
    By PANTECH in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 04-24-2013, 05:07 PM
  5. [SOLVED] Excel user form- If/Then statement outcome to show on user form
    By PANTECH in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2013, 09:16 AM
  6. Need a VBA Code for fliping images in a User Form
    By daksh1981 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-10-2009, 03:58 PM

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