Share via

Export a range of cells from Excel as JPG

Anonymous
2010-12-16T11:57:02+00:00

Dear Expert,

Just wonder is it possible to export a range of Excel cells to be JPG format (Picture) please?

Say Sheet 1 Range A1:E40.

Is that feasbile?

Thanks for advice,

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2010-12-16T12:22:36+00:00

Worksheets("Sheet1").Range("A1:E40").CopyPicture

Worksheets("Sheet2").Paste

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

Answer accepted by question author

Anonymous
2010-12-16T12:55:41+00:00

Excel does not have the ability to save as JPG. You need the assistance of a third party application to provide the graphics output.

A simple solution would be to obtain a graphics 'printer' driver. SnagIt www.techsmith.com is ideal. This provides a 'printer' driver that can be configured to save in a variety of graphics formats including jpg and is a simpler solution than pasting into another application and saving the output from that. You can then use a macro to save a range of cells as JPG e.g. using the same range suggested earlier in the thread

Dim strPrinter As String

strPrinter = Excel.ActivePrinter

ActiveSheet.PageSetup.PrintArea = "$A$1:$E$40"

Application.ActivePrinter = "SnagIt 9 on Ne00:"

ActiveSheet.PrintOut

Excel.ActivePrinter = strPrinter


<Elton Law> wrote in message news:*** Email address is removed for privacy ***...

Hi Jackpot,

Do we need to define a file name so that it can save the JPG file?

Thanks

Elton


Graham Mayor - Word MVP

www.gmayor.com

Posted via the Communities Bridge

http://communitybridge.codeplex.com/

Was this answer helpful?

0 comments No comments

14 additional answers

Sort by: Most helpful
  1. Anonymous
    2010-12-16T12:27:01+00:00

    Hi Jackpot,

    Do we need to define a file name so that it can save the JPG file?

    Thanks

    Elton

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2010-12-16T12:26:24+00:00

    Hi, I asked for this as I have a lot of cells to be exported as JPG file.

    I am afriad youe method does not serve my purpose as it is too manual.

    Thanks for advice.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2010-12-16T12:15:46+00:00

    First open an app like Paint or PowerPoint.

    Hi-light the area in Excel and:

    Paste > As Picture > Copy as Picture

    Then click in the Paint screen and CNTRL-v

    Then in Paint SaveAs JPG.


    gsnu201005

    Was this answer helpful?

    0 comments No comments