Forum Discussion

Mr_Bro's avatar
Mr_Bro
Frequent Contributor
6 years ago

Python Module - ImportError No module named win32api

Hi Tem,  im trying to create a Excel workBook and sheets using Python and im getting error as "Python runtime error. ModuleNotFoundError: No module named 'win32api'" can anyone help me how to ...
  • tristaanogre's avatar
    6 years ago

    It might have to do with the version of Python.  TestComplete uses a separate Python installation and I believe it's using a different version.

     

    However... you really don't need win32com for what you're doing

     

    Sys.OleObject('Excel.Application') will return the Excel application object without having to utilize any outside modules.