+ Reply to Thread
Results 1 to 10 of 10

Export the PrintArea of active sheet to an image

  1. #1
    Forum Contributor
    Join Date
    11-13-2007
    Location
    Prague
    Posts
    145

    Export the PrintArea of active sheet to an image

    Hi, is it possible to export the PrintArea of active sheet to an image?
    Thanks a lot.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Export the PrintArea of active sheet to an image

    Hi

    Like this?
    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Export the PrintArea of active sheet to an image

    Fotis, that copies the image, but doesnt export the file.

    This ones a bit tricky, there are some examples on how to do it, but it would be that code above, then pasting from the clipboard to a new bitmap file.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Export the PrintArea of active sheet to an image

    Exactly. ,,,,,,,,,,,,,,,,,,,,,,

  5. #5
    Registered User
    Join Date
    07-02-2014
    Location
    Sweden
    MS-Off Ver
    Office 2013
    Posts
    17

    Re: Export the PrintArea of active sheet to an image

    Can't you just have PDF creator installed, and create a vba script to print the file?

  6. #6
    Forum Contributor
    Join Date
    11-13-2007
    Location
    Prague
    Posts
    145

    Re: Export the PrintArea of active sheet to an image

    Thanks for all the responses. The thing is, I need this to be completely automatic and also "PrintArea based", not "hardcoded-range based".

    And this is why:
    I have a 30-pages report. Each page is on its own sheet defined by PrintArea of that sheet.
    Now, I want to make 30 pictures of those 30 pages, next month again with new version of that report and so on. In the end, I will "transpose" the pictures to get a time-row of each page of that report.

    In other words - I need to go from this:

    Set of reports (in month M)
    M1 Pages: 1, 2, 3, ... 30
    M2 Pages: 1, 2, 3, ... 30
    M3 Pages: 1, 2, 3, ... 30
    ...
    M12 Pages: 1, 2, 3, ... 30

    To this:
    Set of pages (for all months):
    Page 1: M1, M2, M3, ... M12
    Page 2: M1, M2, M3, ... M12
    ...
    Page 30: M1, M2, M3, ... M12

    Hope, that makes sence. I'll do manually the transposing, I just need to automate the picture making.

  7. #7
    Forum Contributor
    Join Date
    11-13-2007
    Location
    Prague
    Posts
    145

    Re: Export the PrintArea of active sheet to an image

    bump, no response.

  8. #8
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Export the PrintArea of active sheet to an image

    Well google it, me & some others have offered how to do it. Copy the print range to picture, you'll need to do some digging on how to send it to a bmp file. Piece of cake in .NET

  9. #9
    Forum Contributor
    Join Date
    11-13-2007
    Location
    Prague
    Posts
    145

    Re: Export the PrintArea of active sheet to an image

    Ok, thanks for the hints, I have found what I need.
    I copy the image like Fotis1991 suggested.
    I save it uisng this advice.
    In the end, I loop it through the workbook.
    Last edited by bristly; 09-18-2014 at 09:15 AM.

  10. #10
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Export the PrintArea of active sheet to an image

    Yes, that will be fine. The creation of the bitmap code is pretty intense

+ 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. VBA help- Macro to export png image.
    By remjac in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-16-2014, 08:09 AM
  2. Export Image Issues
    By ELC774 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-13-2014, 05:29 PM
  3. Naming an embedded image while it is being added to the active sheet
    By schmidt1962 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2013, 10:15 AM
  4. Export an image as a png file
    By bibleguy125 in forum Excel General
    Replies: 2
    Last Post: 02-27-2012, 12:37 PM
  5. Macro to reference sheet other than active - unhide and/or export
    By Dirty Laundry in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2009, 01:00 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