+ Reply to Thread
Results 1 to 4 of 4

insert picture on worksheet to userform

  1. #1
    Registered User
    Join Date
    11-14-2014
    Location
    st lucia
    MS-Off Ver
    2010
    Posts
    2

    insert picture on worksheet to userform

    I am developing a userform for someone. I have some pictures i want to display on the userform

    Instead of using pic = c:document/picure/image

    I want to save the pics on sheet2.

    I also want to have a next button to view the pics.

    when the form load it will load with pic1 when the next button is click it will move to pic2 and when it is click a third time move to pic3 and so on.

    thanks

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

    Re: insert picture on worksheet to userform

    You should be able to do this with a Userform control "Image List" or Just load all you images on the Userform in seperate "Image" controls and make each one visible as required.

  3. #3
    Registered User
    Join Date
    11-14-2014
    Location
    st lucia
    MS-Off Ver
    2010
    Posts
    2

    Re: insert picture on worksheet to userform

    thank for your reply

    I decided to use the imagelist control however I am not sure which property to use to assign

    to get it to display in the image picture.


    Image1.Picture = ImageList1.

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

    Re: insert picture on worksheet to userform

    In your Userform you need an "ImageList" control, an "Image" Control and a "CommandButton"
    In design mode with the Userform control showing in the code window, Right click the "Imagelist" control and select properties.

    In the properties list you will see near the top "Custom", click the dropdown list and the "Properties" page appears, click "Images" then Insert Picture as required.
    Repeat to load all our Pictures.

    Load the Code below into your Commandbutton.
    Make sure Option Explicit and Dim c as integer are at the top above "Private Sub CommandButton ---"
    Please Login or Register  to view this content.
    Now when you show the Userform, you should be able to Show each picture in turn on Clicking of "CommanButton .

+ 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. Insert a picture from an UserForm
    By rachelies in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-20-2015, 02:21 AM
  2. VBA for Picture insert at particular worksheet range. Picture name derived from cell.
    By Douglas2013 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-09-2013, 01:16 AM
  3. Replies: 2
    Last Post: 03-23-2012, 02:15 PM
  4. Insert picture into userform from hyperlink on worksheet
    By msommerf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-16-2010, 12:21 PM
  5. Insert a picture from a UserForm
    By rachelies in forum Excel General
    Replies: 1
    Last Post: 08-03-2008, 04:02 AM

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