Excel崩溃当使用这个宏进行打印预览和打印机窗口时,我在Google上搜索了很多,看看如何解决这个问题,但是我失败了。下面是我用它来打印预览excel 2010在打印和print.preview时崩溃
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位>> ??????
它工作正常,我...尝试并重新安装打印机驱动程序。 –
我试图在另一台电脑上运行它,但同样的问题和电脑我试了它没有连接到它的打印机,那么什么是probelm? –
您必须先安装打印机。尝试安装一个PDF打印机,如果你没有物理的,然后再试一次。 –