+ Reply to Thread
Results 1 to 11 of 11

ReadIn picture and name of picture

  1. #1
    Registered User
    Join Date
    05-16-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    78

    ReadIn picture and name of picture

    Hi,

    i have a problem. I can read in the picture in a Excelfile (file in the attachement).
    This is working fine. But is it also possible to read-in the name of the picture?

    I need the name of the picture in a cell on the left top of each picture.

    is it also possible to read in the picture in a cell? This should be better if i want
    to hide some picture, right?

    Thank you

    PictureReadIn.xls
    Picture-01.jpg
    Picture-02.jpg
    Picture-03.jpg
    Picture-04.jpg

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: ReadIn picture and name of picture

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    05-16-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: ReadIn picture and name of picture

    the variables r & c have to be defined. What do you prefer?

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: ReadIn picture and name of picture

    you can define them as integer or long

  5. #5
    Registered User
    Join Date
    05-16-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: ReadIn picture and name of picture

    Hi Patel, thank you. this is good.
    Is it also possible to format the pictures as shown in the attachment?

    Arrangement.jpg

  6. #6
    Registered User
    Join Date
    05-16-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: ReadIn picture and name of picture

    And i have one more little problem.

    The macro changes the size of the picture. I don't know why?
    The pictures do not have their original size after read in. Do you know why?

  7. #7
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: ReadIn picture and name of picture

    Quote Originally Posted by bluesurger View Post
    The macro changes the size of the picture. I don't know why?
    Please Login or Register  to view this content.
    then change lblResize caption in the property windows from 2 to 1
    Last edited by patel45; 06-03-2014 at 06:05 AM.

  8. #8
    Registered User
    Join Date
    05-16-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: ReadIn picture and name of picture

    Hi Patel,
    no, this doesn't work with the picture from the attachement.
    It normally should work this way, but it doesn't. With the cars it it working this way.

    Test0.jpg

    if i read in this picture. The size increase up to 133% ?? Why?
    i think there is a problem between cm and inch. Is this possible? (this is factor 0,75?)


    Some information about my format of the pictures?

    Thank you very much
    Last edited by bluesurger; 06-03-2014 at 07:09 AM.

  9. #9
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: ReadIn picture and name of picture

    I don't know, try to insert the car manually, the size is the same than with code

  10. #10
    Registered User
    Join Date
    05-16-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: ReadIn picture and name of picture

    yes with the car it works. But i think there is a bug between pictures with cm to pictures with inch.


    it is working if i insert this:
    Please Login or Register  to view this content.
    but is this the right way?
    Last edited by bluesurger; 06-03-2014 at 07:25 AM.

  11. #11
    Registered User
    Join Date
    05-16-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: ReadIn picture and name of picture

    ok, macro is working in one Sheet.

    Thank you Patel
    Attached Files Attached Files
    Last edited by bluesurger; 06-03-2014 at 09:15 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. On workbook open, displaly Picture while Wav file playing, then hide picture.
    By cg55k in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-04-2014, 10:48 AM
  2. Click on picture and run macro to replace existing picture with selected picture file
    By houseflipsheet in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2014, 12:02 AM
  3. Creating macro to insert a picture by including specific picture name & path
    By NissaFrenchRamsteyn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-09-2012, 05:40 AM
  4. [SOLVED] macro: insert picture based on workbook location, not picture root path.
    By NicksDad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2012, 07:47 AM
  5. Insertion of picture by xls formula/ naming the picture with multiple selection crite
    By luckiest man in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-18-2011, 12:11 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