dealing with blank cells in a range
rmax = Application.Evaluate("MAX(VALUE(RIGHT(""00000""&" & _
rng.Address(1, 1, xlA1, True) & _
",5)))")
Would probably be the easiest.
--
Regards,
Tom Ogilvy
"steve" wrote in message
...
i look for the max number in a range of codes in the following format:
E06001
E06002...
here is a section of my code:
Set rng = destWB.Worksheets("Sheet1").Range("D5:D" & Lr)
rmax = Application.Evaluate("MAX(VALUE(RIGHT(" & _
rng.Address(1, 1, xlA1, True) & _
",5)))")
****how can i tell it to ignore blank cells when looking for the max?
|