Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Validating a Formula
I am trying to validate a cell that has a formula in it.
i.e. c132=sumc1:c131 i need to have an error message appear in the sum of c132 is greater than 65. i can get the validation to work on a cell that has a number entered directly but cannot get it to work on a cell that has a formula. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Validating a Formula
One way:
Put this in the worksheet code module Private Sub Worksheet_Calculate() If Range("C132").Value 65 Then MsgBox "C132 65" End Sub You might also consider using Conditional Formatting to change the cell color instead. In article , "Cath" wrote: I am trying to validate a cell that has a formula in it. i.e. c132=sumc1:c131 i need to have an error message appear in the sum of c132 is greater than 65. i can get the validation to work on a cell that has a number entered directly but cannot get it to work on a cell that has a formula. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Validating a Formula
Just to add, Data Validation is only applied when you make a manual change
to a cell. -- Regards, Tom Ogilvy "J.E. McGimpsey" wrote in message ... One way: Put this in the worksheet code module Private Sub Worksheet_Calculate() If Range("C132").Value 65 Then MsgBox "C132 65" End Sub You might also consider using Conditional Formatting to change the cell color instead. In article , "Cath" wrote: I am trying to validate a cell that has a formula in it. i.e. c132=sumc1:c131 i need to have an error message appear in the sum of c132 is greater than 65. i can get the validation to work on a cell that has a number entered directly but cannot get it to work on a cell that has a formula. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Validating cells | Excel Discussion (Misc queries) | |||
validating | Excel Discussion (Misc queries) | |||
data validation: formula for validating only multiples of 10 | Excel Worksheet Functions | |||
validating | Excel Worksheet Functions | |||
Validating | Excel Discussion (Misc queries) |