Local $sWorkbook = @ScriptDir & "Excel.csv"
_Excel_BookSaveAs($oWorkbook, $sWorkbook, $xlCSV, True)
If @error Then Exit MsgBox($MB_SYSTEMMODAL, "Excel UDF: _Excel_BookSaveAs Example 1", "Ошибка при сохранении книги в '" & $sWorkbook & "'." & @CRLF & "@error = " & @error & ", @extended = " & @extended)
MsgBox($MB_SYSTEMMODAL, "Excel UDF: _Excel_BookSaveAs Example 1", "Книга успешно сохранена как '" & $sWorkbook & "'.")
ShellExecute($sWorkbook)