Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default Selecting an array of worksheets for printing

I have a workbook with a number of worksheets to be printed. Which ones and
how many are determined by a series of BOOLEAN. I select the needed
worksheets for printing.

In this instance, BOOLBAseIllusWL = TRUE, BOOLShowAlternate = TRUE and
BOOLAltIllusWL = TRUE. It picks the correct array of sheets as:

Sheets(Array("Cover Sheet", "Interest Rate 1", "Interest Rate 2",
"Non-financed", "AlternateIllustration", "Disclosure WL")).Select

Then I want to print only the active sheets - the ones selected above. What
I get is it prints darn near everything split into 4 separate printouts.

What am I doing wrong?

Code currently is:
If BoolBaseIllusWL Then
If BoolShowAlternate Then
If BoolAltIllusWL Then 'alternative is also a WL
Sheets(Array("Cover Sheet", "Interest Rate 1", "Interest
Rate 2", "Non-financed", "AlternateIllustration", "Disclosure WL")).Select
Else 'BoolAltIllusUL and show alternate illustration of UL
product class
Sheets(Array("Cover Sheet", "Interest Rate 1", "Interest
Rate 2", "Non-financed", "AlternateIllustration", "Disclosure WL",
"Disclosure UL")).Select
End If
Else 'no alternate illustration and only one product class
Sheets(Array("Cover Sheet", "Interest Rate 1", "Interest Rate
2", "Non-financed", "Disclosure WL")).Select
End If
ActiveWorkbook.PrintOut Copies:=1, Collate:=True
End If

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
selecting a series of worksheets for printing not whole workbook MikeR-Oz New Users to Excel 2 September 11th 08 02:00 PM
Printing Worksheets (Array) RobC[_3_] Excel Programming 2 May 25th 06 07:36 PM
Building an array of worksheets for printing DRK Excel Programming 5 August 30th 05 01:56 AM
Array Printing (Selecting) Craig[_21_] Excel Programming 1 December 31st 04 07:51 AM
printing an array of worksheets Marco de Witte Excel Discussion (Misc queries) 4 December 8th 04 03:21 PM


All times are GMT +1. The time now is 04:53 PM.

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"