Excel 在使用此宏进行打印预览和打印机窗口时崩溃,所以我在 Google 上搜索了很多以了解如何解决此问题,但我失败了。 这是我用于 PrintPreview 的代码
Sub Print_TimeSht()
Application.ScreenUpdating = False
With ActiveSheet.PageSetup
.PrintArea = "$A$1:$Q$599" ' set print area
.PrintHeadings = False
.PrintGridlines = False
.PrintComments = xlPrintNoComments
.CenterHorizontally = False
.CenterVertically = False
.Orientation = xlPortrait
.Draft = False
'.PaperSize = xlPaperA4
.FirstPageNumber = xlAutomatic
.Order = xlDownThenOver
.BlackAndWhite = True
.Zoom = False
.PrintErrors = xlPrintErrorsDisplayed
End With
Application.ScreenUpdating = True
With ActiveWindow
.Zoom = 80
.SelectedSheets.PrintPreview
End With
Application.Dialogs(xlDialogPrint).Show
Application.ScreenUpdating = True
End Sub
那么如何解决这些问题我使用 Excel 2010 32 位和 Win7 32 位 >>??????