I'm close to what I want but print preview shows it will only print the cell on each sheet where my cursor is sitting.
Here's what I have:
Sub PrintSalesLabor()
Dim vArrSh As Variant
Dim sh As Long
vArrSh = Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O")
For sh = LBound(vArrSh) To UBound(vArrSh)
With Worksheets(vArrSh(sh)).PageSetup
.PrintArea = Range("A1").CurrentRegion.Address
End With
Next sh
Sheets(Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O")).Select
SendKeys ("^p%n"), True
End Sub
After running this I look at each sheet and the dotted line surrounds what I want to print(but the area is not highlighted). Each sheet is selected and the print dialog box is on the screen. Then I choose Preview and on each page I only see whatever contents are in the cell where I left my cursor.
What am I missing?
Thanks-
Sharon
Here's what I have:
Sub PrintSalesLabor()
Dim vArrSh As Variant
Dim sh As Long
vArrSh = Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O")
For sh = LBound(vArrSh) To UBound(vArrSh)
With Worksheets(vArrSh(sh)).PageSetup
.PrintArea = Range("A1").CurrentRegion.Address
End With
Next sh
Sheets(Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O")).Select
SendKeys ("^p%n"), True
End Sub
After running this I look at each sheet and the dotted line surrounds what I want to print(but the area is not highlighted). Each sheet is selected and the print dialog box is on the screen. Then I choose Preview and on each page I only see whatever contents are in the cell where I left my cursor.
What am I missing?
Thanks-
Sharon