1-1: PythonでExcelを動かす Pythonを使って、MicrosoftのExcelを動かす方法を紹介します。 具体的には、 Excelの起動 シートに内容を書き込む 名前を付けて保存 という作業を行います。 私自身、普段Excelで作業することは無いので簡単な例だけです。 それとVisual Basicもほとんど使わないので、 プロパティやメソッドの意味等、よく理解していません。 ※:Python で Excel のグラフ作成 (Windows編)の解説ページも作りました 1-2: Excelの起動と終了 まず、Excelをオブジェクトとして作る必要があります。 import win32com.client xlApp = win32com.client.Dispatch("Excel.Application") xlApp.Visible =