My code:
<?
$file = "Book1.xlsx";
$app = new COM("Excel.application") or Die ("Did not connect");
echo "Loaded Excel, version {$app->Version}\n";
$workbooks = $app->Workbooks->open($file);
echo "open <br>";
$app->DisplayAlerts = 0;
$workbooks->Password = '1234';
echo "pss<br>"; //$workbooks->Saveas($file);
$app->Wookbooks->Saveas($file);
echo "save<br>";
$app->Workbooks->Close();
$app->Quit;
?>
<?
$file = "Book1.xlsx";
$