maximusimo
MIS
Hi,
is there anyway I can disable Print Preview within Excel? I have a form with a cell that increments on every print done with the following:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim MyVal As Integer
Range("A1").Select
MyVal = ActiveCell.Value + 1
ActiveCell.Value = MyVal
Range("A2").Select
End Sub
although if someone goes into Print Preview the number also goes up by one - i dont want this to happen as they may cancel out of Print Preview and so the number has already gone up and wont come back down.
All help is much appreciated.
is there anyway I can disable Print Preview within Excel? I have a form with a cell that increments on every print done with the following:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim MyVal As Integer
Range("A1").Select
MyVal = ActiveCell.Value + 1
ActiveCell.Value = MyVal
Range("A2").Select
End Sub
although if someone goes into Print Preview the number also goes up by one - i dont want this to happen as they may cancel out of Print Preview and so the number has already gone up and wont come back down.
All help is much appreciated.