I want to open an excel file, let it wait for a bit (there is a code that needs to run and returns some data) and then save it to another csv file. I tried to open the excel file first using the pywin32 package but it does not work. The code ran without any issue but Excel just does not open. Here is my code:
import win32com.client as win32
xl = win32.Dispatch('Excel.Application')
wb = xl.Workbooks.Open('C:/Users/123456/OneDrive/PyCharm/my-stdout.csv')
How to get this to open excel, and how to make it wait a bit and then save as another csv file?