It seems Abaqus can't save the excel files automatic. I want to export XY data using Excel Utilities tool, but it just open, can't save automatic. So I using win32com module, but it is wrong.

------------------

from win32com.client import GetActiveObject

def just_save():

try:

app = GetActiveObject('excel.Application')

print('Running Excel instance found.')

except:

print('No running Excel instance.')

xlBook = app.Workbooks(1)

xlBook.SaveAs(r'G:/FEA/xxx/xxx/xxx.xlsm')

xlBook.Close()

Similar questions and discussions