+ Reply to Thread
Results 1 to 4 of 4

Giving particular unique names to a image when uploaded in vba

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

    Giving particular unique names to a image when uploaded in vba

    Hi everyone

    Does anyone know some code that will give a particular unique name to a image, when it is uploaded via a userform by a user???

    thank you!
    Last edited by jakeembx; 01-13-2014 at 03:40 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Giving particular unique names to a image when uploaded in vba

    Hello jakeembx,

    Can you give an example of what you mean?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

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

    Re: Giving particular unique names to a image when uploaded in vba

    Background: the form allows a user to type a students personal data and upload a profile image

    Example: when a user has filled in the personal data part of the form, they will click on the add a profile image button that will display a file picker for them to upload a pupils profile image.

    I currently know the code to do this and save the image to a particular cell range within a worksheet but don't no how to name the image when it is saved to the document and worksheet??

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Giving particular unique names to a image when uploaded in vba

    Hello jakeembx,

    When pictures are added to a worksheet, they are added to the Pictures collection for that worksheet. Since each picture you add will always be last one in the collection, you can reference it this way...
    Please Login or Register  to view this content.

+ 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. Replies: 3
    Last Post: 11-07-2013, 02:02 AM
  2. Replies: 1
    Last Post: 11-01-2012, 05:34 AM
  3. Need help matching unique sets of numbers in two columns (uploaded example)
    By pavlic2002 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-25-2012, 02:51 PM
  4. [SOLVED] Issue -- cannot embed uploaded image in post
    By teylyn in forum Suggestions for Improvement
    Replies: 10
    Last Post: 03-20-2012, 09:58 AM
  5. should I use countif or sumproduct to return # of nameA's priority 2 issues
    By StressedOutMom in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-11-2012, 05:59 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