yeah... idispatch...

would run with debug.
if one of these:
$oxl.sheets.add
$oxl.Sheets("Sheet4").Select

return anything, the return value should be supressed.

also:
$oXL.Visible = 1

bothers the eye as other ones are made with tiny letters and this one has capitals...
_________________________
!

download KiXnet