Workbook.Worksheets[1].PageSetup.PrintTitleRows := '$2:$2'; Workbook.Worksheets[1].PageSetup.PrintTitleColumns := '$A:$B';