jonny
Here's an example
Sub test()
Dim arrSheets() As String
Dim Sh As Worksheet
Dim i As Long
i = 1
For Each Sh In ThisWorkbook.Worksheets
If Sh.Range("A1").Value = 1 Then
ReDim Preserve arrSheets(1 To i)
arrSheets(i) = Sh.Name
i = i + 1
End If
Next Sh
ThisWorkbook.Sheets(arrSheets).PrintOut
End Sub
--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.
"jonny" <(E-Mail Removed)> wrote in message
news:d79501c3eff3$7c3c64d0$(E-Mail Removed)...
> re 8:10 am
>
> how do you go about populating an array one by one? I'm
> assuming I could check each of the 160 sheets and if one
> needs printing, put the sheet no. into the array and
> print the sheets(array).printout function
>
> maybe
>