GTK-PM
Thành viên thường trực




- Tham gia
- 10/11/13
- Bài viết
- 313
- Được thích
- 15
Private Sub QuickPrint_Click()
Dim i As Long, Fp As Integer, Ep As Integer, tb
tb = MsgBox("Ban co muon in cac phieu, vbYesNo, "tk.com")
If tb = vbYes Then
For i = Fp To Ep
Sheet1.PrintOut: Sheet3.PrintOut: Sheet4.PrintOut: Sheet5.PrintOut: Sheet6.PrintOut: Sheet7.PrintOut: Sheet8.PrintOut: Sheet9.PrintOut: Sheet10.PrintOut: Sheet11.PrintOut
Next i
End If
ED:
End Sub
Nhờ anh chị sửa giúp em đoạn MSGBOX để hiện thông báo trước khi in
Dim i As Long, Fp As Integer, Ep As Integer, tb
tb = MsgBox("Ban co muon in cac phieu, vbYesNo, "tk.com")
If tb = vbYes Then
For i = Fp To Ep
Sheet1.PrintOut: Sheet3.PrintOut: Sheet4.PrintOut: Sheet5.PrintOut: Sheet6.PrintOut: Sheet7.PrintOut: Sheet8.PrintOut: Sheet9.PrintOut: Sheet10.PrintOut: Sheet11.PrintOut
Next i
End If
ED:
End Sub
Nhờ anh chị sửa giúp em đoạn MSGBOX để hiện thông báo trước khi in