+ Reply to Thread
Results 1 to 3 of 3

how to crop a picture with VBA so that the cropped area does not remain in memory

  1. #1
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Question how to crop a picture with VBA so that the cropped area does not remain in memory

    If you crop a picture in excel, the edges, even though cropped, are always there (just not visible when the crop command is not on) and take up extra memory so excel has a command to trim these: Select picture > Format Tab > Compress Pictures (on the upper left) > Delete cropped areas of pictures > OK. Rather than doing this manually, is there a way to do this with VB? I tried recording the macro while doing the sequence above, but the code does not show up.

    Thanks
    You either quit or become really good at it. There are no other choices.

  2. #2
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Re: how to crop a picture with VBA so that the cropped area does not remain in memory

    Anyone?...

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: how to crop a picture with VBA so that the cropped area does not remain in memory

    Press F5 =>Special Cells=> Objects => OK
    This will select all the objects on the worksheet.
    or
    Please Login or Register  to view this content.
    I have not seen the code for compressing pictures from the Picture Ribbon.
    Possibly a SendKeys command would be required.
    Last edited by davesexcel; 12-08-2012 at 04:31 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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