Hello groundin,
You need to change the With..End With portion of your code. You can use an Array with the Sheets object to select sheets in workbook but not the Worksheets object. here is the corrected code.
Sub Print_All_Worksheets_With_Value_In_A600()
Dim Sh As Worksheet
Dim Arr() As String
Dim N As Integer
N = 0
For Each Sh In ActiveWorkbook.Worksheets
If Sh.Visible = False And Sh.Range("A600").Value <> "" Then ' Original Code...If Sh.Visible = xlSheetVisible And Sh.Range("A1").Value <> "" Then
N = N + 1
ReDim Preserve Arr(1 To N)
Arr(N) = Sh.Name
End If
Next
With ActiveWorkbook
.Sheets(Arr).PrintOut 'This is the line hilighted as the error
End With
End Sub
Bookmarks