+ Reply to Thread
Results 1 to 6 of 6

Add pictures to sheet with picture name based on cell content

  1. #1
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    205

    Add pictures to sheet with picture name based on cell content

    I'm trying to add pictures to a sheet. The location for the pictures will be a pre-determined folder, the picture names will be in a merged cell lets say cell E10 (the merged cell cover range E10 thru E15 and gets populated from a text box on a user form), the merged cell may have up to 5 or 6 pictures names.

    What i would want to do is first look to see if E10 contains picture names, if so then place the pictures on to the sheet in a location below information already on the sheet, lets say last information on sheet is on row 60 and the last column of data used is F. When the pictures are added i would want them distributed such that they will print on page 2 of the sheet.

    Does anyone have any ides or is this something that not doable.

    Thanks

  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: Add pictures to sheet with picture name based on cell content

    Hello jprlimey,

    I would add the pictures from the UserForm. Since the names are entered into a TextBox, why copy them to the worksheet and make more work?
    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
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    205

    Re: Add pictures to sheet with picture name based on cell content

    Leith,

    Thanks for your suggestion.

    Once the user form is closed all the selected information from the user form and picture names input into the text box is transferred to the sheet. The information on the sheet is then stored in a database for retrieval later.

    Later, when we retrieve the information for distribution to the production area, we re-load the user form which then populates the sheet, at this time we would print off the 1st sheet and if pictures existed we would also print sheet 2. We did it this way to reduce the massive number of dedicated files that would become very cumbersome to edit, alter and not to mention the file size.

    So the sheet that is populated from the user from is essentially a template, as such we really don't want to add the pictures to the template

    Thanks

  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: Add pictures to sheet with picture name based on cell content

    Hello jprlimey,

    Understood. How would the picture names appear in the merged cell? Would they be delimited by commas? Need to know to be able to retrieve the names properly.

  5. #5
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    205

    Re: Add pictures to sheet with picture name based on cell content

    Leith,

    The user form textbox is set to multiple line allowing me to enter multiple picture names, in the sheet the picture names would be listed one under another, just like a list.

    for example:
    picture1
    picture2
    picture3

    Thanks

  6. #6
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    205

    Re: Add pictures to sheet with picture name based on cell content

    Quote Originally Posted by Leith Ross View Post
    Hello jprlimey,

    Understood. How would the picture names appear in the merged cell? Would they be delimited by commas? Need to know to be able to retrieve the names properly.
    Leith,

    Would this task be easier if the names were not in merged cells?

    Thanks

+ 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: 10-24-2012, 08:15 PM
  2. Picture based on cell content
    By JEB in forum Excel General
    Replies: 4
    Last Post: 07-17-2007, 06:47 PM
  3. insert picture from file based on cel value/content
    By Jamaican Teacher in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-08-2006, 01:30 PM
  4. based on Cell/Column content ,cut one sheet's values and paste it in other sheet?
    By mindpeace in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-25-2006, 08:33 AM
  5. based on Cell/Column content ,cut one sheet's values and paste it in other sheet?
    By mindpeace in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-24-2006, 10:33 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