EXCELファイルの.xlsxをpdfに変換するプログラム import win32com.client # win32comのインポート excel = win32com.client.Dispatch("Excel.Application") # Excelの起動 file = excel.Workbooks.Open(excelパス) # Excelファイルを開く file.WorkSheets(EXCELシート名).Select() # シート名を指定 file.ActiveSheet.ExportAsFixedFormat(0, pdfパス) file.Close() # 開いたエクセルを閉じる excel.Quit() # Excelを終了がある.これを実行すると pywintypes.com_error: (-2147352567, '例外が発生しました。', (0, 'Mi
![[python]EXCEL関係のライブラリwin32comのエラー|ゴンザレス|note](https://cdn-ak-scissors.b.st-hatena.com/image/square/d14e4019db096b6d79c80493b8201f771f4dd40d/height=288;version=1;width=512/https%3A%2F%2Fassets.st-note.com%2Fproduction%2Fuploads%2Fimages%2F50224233%2Fprofile_c1f3f1d372aad6aaba2be7cfefb4738d.jpg%3Ffit%3Dbounds%26format%3Djpeg%26quality%3D85%26width%3D330)