Print two different areas on a worksheet
It works for me if I only do the first print. When I put in the second
print, it locks up. MS sends me an error report and shuts down excel. I'll
try leaving the line out and see if that works.
"bigjim" wrote:
I'm using excel 2003 and want to print two different areas on a sheet. Here
is the code I'm using, but when I run it, it locks up sending an error report
to MS.
ActiveSheet.PageSetup.PrintArea = "$a$1:$l$64"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
ActiveSheet.PageSetup.PrintArea = ""
ActiveSheet.PageSetup.PrintArea = "$a$65:$l$127"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
|