+ Reply to Thread
Results 1 to 7 of 7

Save picture located in workbook to .jpg file

  1. #1
    Registered User
    Join Date
    08-12-2014
    Location
    London
    MS-Off Ver
    2007
    Posts
    51

    Save picture located in workbook to .jpg file

    Hi there,

    I have a workbook with a object/shape/picture (basically it's a picture floating above the cells) on it and I can identify the picture, copy it, paste etc but I cannot get arround to save it a .jpg or any other extention file to the folder.
    Any ideas how to do it?

    Lets say the picutre is a sheets(3).shape("poster_img") and how to get this to save in to: "C:\\blablabla\posters\poster_img.jpg" ?


    Thanks

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Save picture located in workbook to .jpg file

    See post #11 on this thread

    http://www.excelforum.com/showthread...t=#post4407926

    You won't need to worry about the last half of the code as it takes the saved picture and then uses it in an email but the first part of the code does what you want. If you want more detail for your specific issue attach your files and I or someone else can look at it.
    Happy with my advice? Click on the * reputation button below

  3. #3
    Registered User
    Join Date
    08-12-2014
    Location
    London
    MS-Off Ver
    2007
    Posts
    51

    Re: Save picture located in workbook to .jpg file

    Nice one! It does the job!
    Code looks more 'packed-up' than I thought it would be but it's what I wanted.

    Btw. What I orginally wanted is that:

    The picture I have 'floating' over the cells, lets say called: poster_img (shape/picture) to be inserted on to the userform image_control box.
    I've spent a 2 days searching how to so I've gave up and now the process going to be: save picture to file > load to image_box from file. Seems to be only the way, althrough stupid since I have picture on the actual workbook, then export out to .jpg file and then import back on to the same workbook... but... Excel just does not gives me (or I and whole internet never found the way) the option to do this quickly.
    I've looked on to Steve Bullen's code that is around the web but this seems not to work for me + code is just too heavy for my purposes.

    Thanks anyway as the solution provided does the job!

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Save picture located in workbook to .jpg file

    Glad it worked. The original code I gave you was also a workaround to get a file off a workbook into an email but I had to save the file first then reload it back for the email. Sounds like a similar issue to yours!

  5. #5
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Save picture located in workbook to .jpg file

    Search for Stephen Bullen's PastePicture code. It will allow you to copy a picture on a worksheet and load it straight into an image control.

  6. #6
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Save picture located in workbook to .jpg file

    Quote Originally Posted by rorya View Post
    Search for Stephen Bullen's PastePicture code. It will allow you to copy a picture on a worksheet and load it straight into an image control.


    Quote Originally Posted by PENGUIN88 View Post
    .
    I've looked on to Steve Bullen's code that is around the web but this seems not to work for me + code is just too heavy for my purposes.
    Looks like Penguin's already done this

  7. #7
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Save picture located in workbook to .jpg file

    Must have done something wrong then because it does work.

+ 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: 1
    Last Post: 09-22-2015, 02:22 PM
  2. 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
  3. Want to open file, copy filtered data to new workbook and at save as new file
    By satishdu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-25-2014, 12:39 PM
  4. 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
  5. [SOLVED] Save the split the workbook file type as Excel Binary Workbook From Run Macro
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-25-2013, 05:09 AM
  6. Replies: 4
    Last Post: 06-29-2013, 11:38 AM
  7. Replies: 5
    Last Post: 03-21-2013, 07:34 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