Python

pycharm win32com excel 호출시 에러

쪼쪼랩 2021. 11. 24. 16:12
반응형

excel을 단순히 visible 했는데 웬 에러냐...

 

 

Traceback (most recent call last):
  File "C:/Users/yasut/PycharmProjects/test1/main.py", line 3, in <module>
    excel.Visible = True
  File "C:\Users\yasut\PycharmProjects\test1\venv\lib\site-packages\win32com\client\dynamic.py", line 708, in __setattr__
    "Property '%s.%s' can not be set." % (self._username_, attr)
AttributeError: Property 'Excel.Application.Visible' can not be set.

Process finished with exit code 1

 

이유는 excel이 컴퓨터에서 구동을하지 않기떄문에 발생되는 에러...

반응형