+ Reply to Thread
Results 1 to 12 of 12

Print specific pages in active sheet

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Print specific pages in active sheet

    Hello everyone
    I have Data sheet ...
    When clicked print preview there are four pages ..
    I need to examine values in column G in each page ... If there are any value withing page greater than zero ,so the page to be printed

    In the attachment : page 1 and page 3 should be printed out , and exclude page 2 and page 4 as in these two pages there ar no values greater than zero

    Hope it is clear
    Attached Files Attached Files
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Registered User
    Join Date
    04-22-2013
    Location
    Philippines & Australia
    MS-Off Ver
    Excel 2016, Office 365
    Posts
    73

    Re: Print specific pages in active sheet

    When I looked at your workbook it was like a mirror image with the Column headers reversed?

    The following should work. I am assuming that only numbers
    will be in Column G!

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Print specific pages in active sheet

    Thanks for help
    First, I have 200 pages and it will be exhausted to determine the ranges for each page
    Second, the code prints every page twice ..!!
    Third, column G have other data in other positions not only numbers
    Fourth, If possible using the text "Signature:" which existed at the end of each page I think this will be better

    Thanks advanced

  4. #4
    Registered User
    Join Date
    04-22-2013
    Location
    Philippines & Australia
    MS-Off Ver
    Excel 2016, Office 365
    Posts
    73

    Re: Print specific pages in active sheet

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-22-2013
    Location
    Philippines & Australia
    MS-Off Ver
    Excel 2016, Office 365
    Posts
    73

    Re: Print specific pages in active sheet

    Sorry Yasser, I left out one more If Check, probably would have printed how many cells in those ranges contained Data????
    And I assumed you were only taking about One Sheet

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Print specific pages in active sheet

    Great it works now well
    That's exactly what I need ...
    But there is a problem >> I have in this sheet about 200 pages .... and it would be exhausted to put the ranges for each page ..
    Is it possible to specify the ranges depending on the text "Total" or the text "Signature"?

    Thanks for help

  7. #7
    Registered User
    Join Date
    04-22-2013
    Location
    Philippines & Australia
    MS-Off Ver
    Excel 2016, Office 365
    Posts
    73

    Re: Print specific pages in active sheet

    I am a little confused as to exactly what triggers whether to print or not To establish the Ranges of your Pages that are designated
    print areas you could use the code below in a loop to determine the ranges. Suggest you send these results to a new sheet and separate the
    individual ranges into an array for processing the print process.



    Please Login or Register  to view this content.

  8. #8
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Print specific pages in active sheet

    This issue can be solved if we could use the word "Signature" to determine the first and last row of the range of each page I suppose
    Please any one can help me at this point.
    I appreciate any help

  9. #9
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Print specific pages in active sheet

    I appreciate any help with that topic

  10. #10
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Print specific pages in active sheet

    Hi,

    Please Login or Register  to view this content.

    Regards

  11. #11
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Print specific pages in active sheet

    Mr. Karedog
    I'm very grateful of your great and continuous help in all my complicated issues
    Thank you very much ..
    Regards

  12. #12
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Print specific pages in active sheet

    You are welcome. I am glad I can help, while I still can.
    Thanks for the reps.


    Regards

+ 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. Print specific pages from sheet 1
    By gneral in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2014, 05:57 AM
  2. Replies: 0
    Last Post: 09-02-2014, 12:59 PM
  3. vba to print active sheet to pdf, auto save in specific folder then mail using outlook
    By lathamashly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-21-2014, 04:57 AM
  4. Print specific pages
    By getachewtewodros1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-06-2013, 09:42 AM
  5. [SOLVED] Print Macro to email PDFs of specific pages of a workbook to specific recipients
    By mike_vr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-26-2012, 12:34 PM
  6. Print Active Pages of a Worksheet
    By geepeeone in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-12-2009, 03:40 AM
  7. Print specific pages based on specific cells
    By cane corso in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-30-2008, 05:23 PM

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