+ Reply to Thread
Results 1 to 3 of 3

cropping an object with VBA

  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 cropping an object with VBA

    I hit "print screen", and then copy that image into a workbook. Though, the image that needs to eventually end up in the workbook is smaller than the image produced by "print screen", so what I'd like to be able to do is crop the image produced. Is this possible with VB?

    If so, what I'd like to do is crop it from the top left corner by x amount of pixels in both y and x directions, and also from the bottom right corner by x amount of pixels in both y and x directions.

    Thank you.
    Last edited by luv2glyd; 07-19-2010 at 12:14 PM.
    You either quit or become really good at it. There are no other choices.

  2. #2
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Re: cropping an object with VBA

    Quote Originally Posted by luv2glyd View Post
    I hit "print screen", and then copy that image into a workbook. Though, the image that needs to eventually end up in the workbook is smaller than the image produced by "print screen", so what I'd like to be able to do is crop the image produced. Is this possible with VB?

    If so, what I'd like to do is crop it from the top left corner by x amount of pixels in both y and x directions, and also from the bottom right corner by x amount of pixels in both y and x directions.

    Thank you.
    Hi,

    See if you can make this work, I found it along the way...

    Please Login or Register  to view this content.
    Thank You, Mike

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

    Re: cropping an object with VBA

    Cool, thank you. Here's what I did:

    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)

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