To DanGoodWin:
For the DateTime value, there has to be a decimal place. The code in the DO CASE does the
CASE ATC(".", loCellFormat.CellVal) > 0
lnNdx = ATC(".", loCellFormat.CellVal)
The CASE confirms that a decimal is present; so lnNdx should not ever be zero. So your IIF() statements should not be needed.
Greg
↧