RoundUp is not a VBA function but an Excel worksheet function. You need touse:Application.WorksheetFunction.RoundUp