sb.Sheets[0].PageSetup.FitToPagesTall = 2; sb.Sheets[0].PageSetup.FitToPagesWide = 2; if (sb.Sheets[0].PageSetup.FitToPage == true) { MessageBox.Show("FitToPage"); }
sb.Sheets(0).PageSetup.FitToPagesTall = 2 sb.Sheets(0).PageSetup.FitToPagesWide = 2 If sb.Sheets(0).PageSetup.FitToPage = True Then MsgBox("FitToPage") End If