Hello,
I am trying to create a list of all opened Excel files (some might be new and not yet saved) using
e = actxGetRunningServer('Excel.Application')
as shown in some examples on this website, but
e.Workbooks.Count
always returns 0 and does not see any open workbooks (I had 2 open when testing this).
I am using version R2018b on Windows 7, and the variable values are:
e: COM.Excel_Application
e.Workbooks.Count: 0
I also tried using
actxserver('Excel.Application')
but it does not help either. Can anyone please tell me what needs to be changed in new version of Matlab to make it work?
Best Answer