Stan,
In your last post you mentioned that this worked:
oWS.Cells.Replace(::What="-*",Replacement="0")
. That code seems to use the Cells object as opposed to the Selection object. WinBatch should be able to specify all of the other positional parameters. Maybe give this a try:
xlPart = 2
xlByRows = 1
...open any workbook with negative numbers, set oWS to a worksheet
oWS.Cells.Replace(::What="-*",Replacement="0", LookAt=xlPart, SearchOrder=xlByRows, MatchCase=@False, SearchFormat=@False, ReplaceFormat=@False)
If you still get an error. Simply add DebugTrace(@on,"trace.txt") to the beginning of the script and inside any UDF, run it until the error or completion, then inspect the resulting trace file for clues as to the problem. Feel free to post the trace file here ( removing any private info) if you need further assistance.