If you just want to stop the printing of ranges with nothing in them, this could
be at the bottom of your code:
For Each ar In rng.Areas
MsgBox "Zoom: " & wsSheet.PageSetup.Zoom _
& " - " & ar.Address(external:=True)
If Application.CountA(ar) 0 Then
ar.PrintOut
End If
Next
application.counta() just counts the cells that have something in them.
But it will include formulas that evaluate to "".
Phil Hageman wrote:
Tom, I removed the line and the code works! Thank you very much.
When the message box comes up asking for OK to print a particular range, can we add a "no" option to not print that range? Sometimes the second or third range may be empty of data.
Thanks,
Phil
--
Dave Peterson