How can I programmatically get the number of pages that a workbook or worksheet will print from Excel 2007 Interop ( Microsoft.Office.Interop.Excel )?
Are you looking for ActiveSheet.PageSetup.Pages.Count?
ActiveSheet.PageSetup.Pages.Count
PageSetup.Pages.Count will give the correct answer. But how to get the right score if comments are printed at the end of the sheet.
"ActiveWindow.SelectedSheets.PrintOut From: = 1, To: = 1, Copies: = 1, Collate: = True, IgnorePrintAreas: = False"
"" "" .