Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Good day all,
I have looked at various "find" posts on the news group but cannot find an example of what I am trying to achieve. Basic history (simplified) is a purchasing, sales and inventory spreadsheet (PSI). When a user closes the spreadsheet they are in, I would like my vba app to check for any negative numbers in the entire sheet called "PSI" and abort the save/close if one is found. As some of the fields are entered values and some are calculations it is a bit tricky. Also as some of the formulas have minus signs in them you cannot just search for - At this stage I use conditional formating to highlight negatives and I can't use data valadation due to the calculations. I know that I could check every cell to see if its value is less than zero but it seems there must be a smarter way. In summary On file close check to see if any numbers ( entered or calculated) are less than zero Thanks in advance Ian Parker |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
finding maximum, minimum in a range consists both Positive and Negative numbers | Excel Worksheet Functions | |||
formula for finding out the negative numbers | Excel Worksheet Functions | |||
Finding a value quickly using VBA | Excel Discussion (Misc queries) | |||
math; How do I multiply a row of numbers quickly? | Excel Discussion (Misc queries) | |||
What is filtered in a Pivot Table? Finding out quickly... | Excel Discussion (Misc queries) |