Dear Dmitri,
Thank you for your reply on my issue. I have changed all the generic names but still encounter the same problem: I can load the excel file from the command window but not from an m-file with the same commands.
When I did run the m-file the 'current directory changes' and then it does not work properly anymore. Whenever I launch the m-file from the current start-up directory (C:\Users\harm_) it does work. So changing current directory gives the error.
Do you have an idea how to solve this?
Thanks,
Harm