I want set a macro to print all tabs of a workbook, except for the first 3. The first 3 never change, so I know their names, but they're length does, so it's difficult to use code that starts printing on a particular page, in case one of the first 3 takes up a different number of pages than it does right now.
Also I want to show the print preview screen, instead of sending them straight to the printer. This will allow the user to adjust the printer duplex and binding options prior to printing.
Currently I've tried the code below, but I don't like that it sends each tab as it's own print job/opens a print window for each tab. I have over 60 tabs to print, so I want to avoid clicking print 60 times. Thanks!
Also I want to show the print preview screen, instead of sending them straight to the printer. This will allow the user to adjust the printer duplex and binding options prior to printing.
Currently I've tried the code below, but I don't like that it sends each tab as it's own print job/opens a print window for each tab. I have over 60 tabs to print, so I want to avoid clicking print 60 times. Thanks!
Code:
For Each ws In ThisWorkbook.Worksheets[INDENT]If ws.Name <> "Main Data" And ws.Name <> "Figure 2-2" And ws.Name <> "Master Blank for ERC" Then[/INDENT]
[INDENT=2]If ws.Visible = xlSheetVisible Then
Application.Dialogs(xlDialogPrint).Show
End If[/INDENT]
[INDENT]End If[/INDENT]
Next ws