Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi
Within Sub Workbook_BeforeClose I would like an IF statement to check to cell values within my worksheet. If both conditions are met, prevent the workbook from closing and send the user a message to tell them to correct the condition. If the condition does not exist, continue with closing the workbook An example of what I'm looking for is based on this formula =IF(AND(A1="red",B1="blue"), "Red and Blue cannot exists together, please correct before closing the workbook" etc I am developing my macros in Excel 2007 and will require them to run on 2003 when I deploy them so would appreciate solutions for both (it may be that they are the same?) Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using "double equal signs" in place of an IF statement | Excel Worksheet Functions | |||
adjusting decimal place in protected worksheet in excel 2007 | Excel Worksheet Functions | |||
I need an academic school calendar for 2006-2007 with a place for | Excel Discussion (Misc queries) | |||
How do I override fixed decimal place settings in EXcel 2003? | Excel Worksheet Functions | |||
How do I create a macro button and place anywhere on my sheet? | Excel Discussion (Misc queries) |