3

Javascript を使用して Excel スプレッドシートの列を検索し、ユーザーがテキスト ボックスに入力した値と一致する値を検索できるかどうか疑問に思っていました。一致が見つかった場合、一致が見つかった行番号を取得し、その番号を変数に入れたいと思います。私は小規模なデータベースを作成していますが、可能であればこのサイトを SQL などのデータベース プログラムの使用から独立させたいと考えています。

JavaScriptでこれを達成することは可能ですか? JavaScript でこれができない場合、このタスクを処理できる他のスクリプト言語はありますか?

ありがとう

4

2 に答える 2

1

Scripting Microsoft Excel in JavaScript is a new thing, only Office 2013 supports it. Here is the doc. Here is a useful intro.

For older Office versions, use VBA macros, or write an application in C# which uses Microsoft.Interop, as @PortlandRunner suggested.

UPDATE I forgot to mention that C# is not the only technique to work with Excel files from external code. @KevinCollins is right, there is JScript and VBScript too. For the sake of completeness, I would like to add PowerShell to the list, you can also work with Excel files using PowerShell.

于 2013-10-24T16:53:51.067 に答える