Hi Bobby,
Change:
'Check column AG for X-Ray dates
If .Cells(j, 33).Value Like "*#/*#/####" Then iXRay = iXRay + 1
to:
'Check column AG & AL for X-Ray dates
If .Range("AG" & j).Value Like "*#/*#/####" Or _
.Range("AL" & j).Value Like "*#/*#/####" Then iXRay = iXRay + 1
There's nothing significant about using .Range instead of .Cells here except that it makes it easier to recognise which column the code is working with.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|