Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a formula that when a cell in column C is the minimum it will say NEW
RECORD. What I need now is if a cell in column D is the maximum the say NEW RECORD Here is the formula I have for the minimun in column c Private Sub Worksheet_Change(ByVal Target As Range) If Intersect(Target, Range("c:c")) Is Nothing Then Exit Sub Application.EnableEvents = False x = Target: Target = "" If x < Application.WorksheetFunction.Min(Range("c:c")) _ Then MsgBox ("NEW RECORD") Target = x Application.EnableEvents = True End Sub I took min out and put max and changed the ("c:c")) to ("d:d")) but does not work anything else I need to do? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pls help for creat a Macro.... | Excel Discussion (Misc queries) | |||
Creat formulas | Excel Worksheet Functions | |||
Creat | Excel Discussion (Misc queries) | |||
How can I creat | Excel Discussion (Misc queries) | |||
Creat a new worksheet | Excel Discussion (Misc queries) |