** Here what Excel Help said about replace expression.Replace(What, Replacement, LookAt, SearchOrder, MatchCase, MatchByte, SearchFormat, ReplaceFormat) ** so you must do something like: #define xlByRows 1 #define xlPart 2 oExcel.Cells.Replace([$null], [0], xlPart, xlByRows, .f., , .f., .f.)Something like this, but not tested