+ Reply to Thread
Results 1 to 5 of 5

Create an image upload form in excel VB

  1. #1
    Registered User
    Join Date
    02-12-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    68

    Create an image upload form in excel VB

    hi everyone,
    I'm creating a form in excel vb that will allow the user to input data about students, however images are required for student profiles as a profile picture. Is it possible to create a upload form so that the user can upload profile pictures without having to manually insert images in to excel???
    Thank you
    Last edited by jakeembx; 09-21-2013 at 01:52 PM.

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: Is it possible to create an image upload form in excel VB

    yes.

    The simplest (which isn't simple) is to create a form which allows a file path and name to be entered.
    You could write a browse and file picker.
    If you have an attached camera you should be able to capture a picture.

    You can display the image on the form

    But to save it in the spreadsheet you will need to create something to hold the picture eg a drawing object and set the image property to the image.


    click on the * Add Reputation if this was useful or entertaining.

  3. #3
    Registered User
    Join Date
    02-12-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    68

    Smile Re: Is it possible to create an image upload form in excel VB

    Quote Originally Posted by tony h View Post
    yes.

    The simplest (which isn't simple) is to create a form which allows a file path and name to be entered.
    You could write a browse and file picker.
    If you have an attached camera you should be able to capture a picture.

    You can display the image on the form

    But to save it in the spreadsheet you will need to create something to hold the picture eg a drawing object and set the image property to the image.

    Thank you for the reply,

    I will look more into a file path thank you so much

    PS would this mean I would have to set up a particular folder for images to be inserted from???

  4. #4
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: Is it possible to create an image upload form in excel VB

    This code you can run to see how the file picker dialog works. If you want to use something like this then think about how exactly you might want the process to work. Then post with an update




    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-12-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Create an image upload form in excel VB

    Thank you for your support, really appreciate it!!

+ 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. Using VBA to upload image to website
    By giaosucan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-23-2013, 10:25 AM
  2. Access form image upload
    By andypm in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-30-2012, 11:40 AM
  3. How to Create image box on form
    By z0rpia in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2009, 11:24 PM

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