Brian from Maui
MrExcel MVP
- Joined
- Feb 16, 2002
- Messages
- 8,459
I tried changing this to the active sheet without luck, but then again, I'm a novoice! 
Thanks for looking.
Code:
Option Explicit
Public Sub PrepareSheetForPrinting()
Dim WkSht As Worksheet
Set WkSht = ThisWorkbook.Sheets("Sheet1")
SortTeacherThenStudent WkSht
DoEvents
SetupPage WkSht
Thanks for looking.