I am trying to use xlwings to link Python to Excel. With good success, but I can not link to an already opened (and modified) excel workbook. So the workbook is already open in Excel, I want to link to that and use that specific workbook.
Using wb = Workbook(filename)
that works fine, except when I already modified the excel spreadsheet in Excel. When I issue the command wb = Workbook(filename)
Excel returns with "filename is already open. Reopening will cause any changes you made will be discarded. Do you want to continue Y/N ?"
So, instead of using the workbook already available in Excel, it tries to reopen the original workbook in Excel. I need to use the current (with all my non-saved changes) copy as it now lives in Excel.
So the question boils down to: How do I live-link to an already opened workbook in excel?
Thanks, Willem