投稿日 | : 2003/03/18(Tue) 03:40 |
投稿者 | : 魔界の仮面弁士 |
Eメール | : |
URL | : |
タイトル | : 今更の回答ですが |
> 次のデータを作るような数式をセルに書き込んでいたので、それが原因でした。
JETのExcel IISAM機能では、「数式」のセルは読み取り専用となります。
「値のみ」が格納されたセルであれば、編集可能です。
なお、JETのI-ISAMの制限については、下記のページを御覧ください。
DAO 3.51 / JET 3.5x時代の資料ですが、DAO 3.6 / JET 4.0 でも基本的には同一です。
http://msdn.microsoft.com/library/en-us/office97/html/workingwithspreadsheets.asp
英語だと読む気が薄れる(?)かもしれませんので、とりあえず抜粋解説。
》* You cannot delete rows from Microsoft Excel worksheets or workbooks.
→追加/編集は出来ますが、削除はできません。
》* You can clear data from individual cells in a worksheet,
》 but you cannot modify or clear cells that contain formulas.
→個々のセルの内容をクリアする事ができますが、数式を含んだセルはクリアできません。
》* You cannot create indexes on Microsoft Excel worksheets or workbooks.
→DAOのCreateIndexメソッドなどを使って、インデックスを作成する事はできません。
》* You cannot read encrypted data through the Microsoft Excel installable ISAM.
》 You can’t use the PWD argument (PWD=password) in the connection string to
》 open an encrypted worksheet or workbook, even if you supply the correct
》 password. You must decrypt all Microsoft Excel worksheets or workbooks through
》 the Microsoft Excel user interface if you plan to link or open them in
》 your Microsoft Access database.
→Excelのパスワード保護された文書は、JETのI-ISAMでは開けません。接続パラメータで
PWD=passwordの指定をしても無効です。ということで、もしパスワード保護された
文書を読み書きしたい場合は、Excelそのものをオートメーション操作して読む事になります。