Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 413
Default Limit printing to certain 'pages' based on value

How best to write this statement, please?:

If (Wkbk_PrintZeroPages = False Or _
Wkbk_PrintBlankPages = False) Then
'do not print empty/blank or zero pages,
'so test the 'total' cell for this page:
If (Pagevarr(i+1).Offset(-1, £Col).Value = 'blank/empty
' Or
"0"
' Or
"0.00"
' etc
Then Exit For
Else
Printvarr(i).PrintOut
End If
End If

Would I cover all bets with this statement?:
If the value in the total cell is Numeric and zero Then?
seeing as there should only be numeric entries in the total cell,
if anything at all.

What's my best solution, please?

Regards.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.674 / Virus Database: 436 - Release Date: 02/05/2004


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 printing problem--printing 1 document on 2 pages Bons Excel Discussion (Misc queries) 0 December 24th 09 04:15 PM
How can I limit Excel worksheet to 12 pages? Fredfixit New Users to Excel 1 November 19th 09 12:46 PM
How do I delete pages in Excel? Keeps printing blank pages at end. Jojobean Charts and Charting in Excel 1 May 31st 07 07:37 AM
Character limit when printing Neil Conduit Excel Discussion (Misc queries) 1 June 1st 06 01:54 PM
Limit Printing of Worksheets. Danny Excel Programming 1 May 3rd 04 08:06 PM


All times are GMT +1. The time now is 07:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"