+ Reply to Thread
Results 1 to 7 of 7

How do you save an area of a worksheet as an external picture?

  1. #1
    Registered User
    Join Date
    06-11-2016
    Location
    Houston, Texas
    MS-Off Ver
    10
    Posts
    2

    How do you save an area of a worksheet as an external picture?

    I'm creating a program that creates drawings using shapes. Once I have a drawing I want to copy the part of the screen it occupies as a bitmap and then save that as an external file. The code to capture it as a bitmap is shown below. Once I have the picture it is in the clipboard. How do I save the contents of the clipboard as an external file or how do I paste the picture as an image into the workbook and then save it as an external file? I thought of adding it as the background image to a blank chart and then saving the chart but I'm sure there is a more direct way to do it.

    Range("A6:CT11").Select
    Selection.Copy
    Application.CutCopyMode = False
    Selection.CopyPicture Appearance:=xlScreen, Format:=xlBitmap

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: How do you save an area of a worksheet as an external picture?

    Take a look here, this is the main idea.
    You can change it to your exact need;
    http://officetricks.com/print-screen...tomate-in-vba/
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How do you save an area of a worksheet as an external picture?

    Hi,

    Here's one way

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: How do you save an area of a worksheet as an external picture?

    That's what the link says too

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How do you save an area of a worksheet as an external picture?

    Quote Originally Posted by Keebellah View Post
    That's what the link says too
    I didn't even look at the link. It's a procedure I've had in my toolbox for a few years. The link must have come from the same source.

    Presumably it does what the OP wants?

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: How do you save an area of a worksheet as an external picture?

    I guess so too. I have the same thing, this same code I have saved on a disk somewhere so I just looked up the link for this post.

  7. #7
    Registered User
    Join Date
    06-11-2016
    Location
    Houston, Texas
    MS-Off Ver
    10
    Posts
    2

    Re: How do you save an area of a worksheet as an external picture?

    Thanks for your reply. I will give it a try.

+ 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. COPY.PICTURE() and SAVE.AS.PICTURE() ???
    By riwiseuse in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-06-2016, 08:14 PM
  2. Save an image file of the print area on each worksheet
    By rs1aj in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-02-2016, 05:05 PM
  3. VBA for Picture insert at particular worksheet range. Picture name derived from cell.
    By Douglas2013 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-09-2013, 01:16 AM
  4. export and save worksheet as a picture.
    By Diesel13 in forum Excel General
    Replies: 18
    Last Post: 10-22-2010, 05:04 PM
  5. Print area after taking a picture
    By Randyt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-26-2010, 03:20 PM
  6. Use VBA to crop a picture and save the picture in a folder
    By Cookstein2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2009, 12:01 PM
  7. save picture in a worksheet programmatically
    By ermeko in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-30-2006, 10:20 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