Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
the macro that i is:
Private Sub Workbook_BeforePrint(Cancel As Boolean) If ActiveSheet.Name = "DSR" Then Cancel = True Application.EnableEvents = False With ActiveSheet If .Range("D1") < "[Ctrl] ;" Then .PrintOut End If End With Application.EnableEvents = True End If End Sub i would like to change it so that another condition is also met. Cell "F57" must equal 0.00 before print out also. i tried Private Sub Workbook_BeforePrint(Cancel As Boolean) If ActiveSheet.Name = "DSR" Then Cancel = True Application.EnableEvents = False With ActiveSheet If .Range("D1") < "[Ctrl] ;" And ("F57") = "0.00" Then .PrintOut End If End With Application.EnableEvents = True End If End Sub it is not as easy as i had hoped - suggestions? jat jaswal |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro Help In Excel | Excel Discussion (Misc queries) | |||
Closing File Error | Excel Discussion (Misc queries) | |||
Macro to close excel | Excel Discussion (Misc queries) | |||
passing arguments from an excel macro to a word macro | Excel Discussion (Misc queries) | |||
Excel macro that opens new MS Word file and pastes data as a pictu | Excel Worksheet Functions |