Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hello,
I'm looking for code to check a value in a cell and if that value is 0 then continue to print. If the value is any number other than 0 then display a message box stating that the sheet does not balance and let the user go back to the sheet and fix. Here is the code I have so far with no success Private Sub Workbook_BeforePrint(Cancel As Boolean) If Range("A42") < 0 Then PrintOut = False End Sub Thanks for any input. Steve |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
macro with F9 | Excel Discussion (Misc queries) | |||
Help with macro looping and color query function | Excel Discussion (Misc queries) | |||
Playing a macro from another workbook | Excel Discussion (Misc queries) | |||
Date macro | Excel Discussion (Misc queries) | |||
Macro and If Statement | Excel Discussion (Misc queries) |