From: pls123 on 13 May 2010 11:17 hi all ! is there a way to use a MAX or MIN function in VBE ?? like this..TX ! if P5 > max (P9;P10;P11) THEN P5 = ZERO END IF
From: Rick Rothstein on 13 May 2010 11:27 Not sure what P9, P10 and P11 are... variables or range references (the semicolon delimiters are confusing)? Either way, this should work... If P5 > WorksheetFunction.Max(P9, P10, P11) Then -- Rick (MVP - Excel) "pls123" <pls123(a)discussions.microsoft.com> wrote in message news:8B22AA43-D9F9-4516-B5CC-74061A29B67D(a)microsoft.com... > hi all ! > is there a way to use a MAX or MIN function in VBE ?? > like this..TX ! > > if P5 > max (P9;P10;P11) THEN > P5 = ZERO > END IF
|
Pages: 1 Prev: 2 spreadsheets - populating one by multiplys of another Next: Before Cell Exit |