I'm trying to use vba to print 54 tabs from a separate xlsx sheet. I've been able to get it to work. The only issue is that the list of 54 tabs is too long and causes an error. I can print, say, 30 tabs without an issue, but 54 is too many. Can I group the tabs at the top of the code? I've done this before with other functions, but never with printing. Below is what I have so far:
I get an error on the last line. Does anyone know how I can get both groups to print in one continuous print?
Thanks
Rich (BB code):
Sub PrintFullSetSprint12to18B()
GroupA = Array("Sheet1", "Sheet2", "Sheet3", "etc.")
GroupB = Array("Sheet26", "Sheet27", "Sheet28", "etc.")
Dim wb As Workbook
On Error Resume Next
Set wb = Workbooks("SPRING JUNIOR -12-18 full year.xlsx")
If wb Is Nothing Then
MsgBox "Workbook is not open!", vbExclamation
Exit Sub
End If
On Error GoTo 0
Application.Dialogs(xlDialogPrinterSetup).Show
wb.Worksheets(Array("GroupA", "GroupB")).PrintOut
End Sub
I get an error on the last line. Does anyone know how I can get both groups to print in one continuous print?
Thanks
Last edited: