嗨我正在尝试打印出用户窗体。打印时始终提示保存用户窗体(正在显示提示框)。我不想要它。将打印方法从PDF更改为默认打印机以打印表格
我想在不保存的情况下选择打印机后直接打印输出。下面
代码:
Private Sub CommandButton2_Click()
CommandButton2.Visible = False
CommandButton1.Visible = False
Application.Dialogs(xlDialogPrinterSetup).Show
Me.PrintForm
CommandButton2.Visible = True
CommandButton1.Visible = True
End Sub
你有没有在PrintForm行之前试过Application.DisplayAlerts = False? –
Hi.No。即使添加这不是帮助 – umakant