• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to access all pages one by one from the print area

Wasif85

New Member
Dear Team;

I have page setup which have 5 pages to print. I want to access the page which have no data and want to delete that page.. My logic is as fellow

>>> use code - tags <<<
Code:
dim count, a as integer
' count total no of print pages
count=sheet3.pagesetup.pages.count
for a=1 to count
   ' if page 3 is blank, delete ie

next
 
Last edited by a moderator:
Wasif85
Few questions for You:
If You have five pages to print, then why do You ... count ... number of pages to print?
How do You know, if some page don't have any data?
Could You handle this by setting range which You would like to print?
Could You send a sample Excel-file, which shows Your challenge?
 
Back
Top