writecell does not close excel

Hi all,
I am writing a Gui that can write to an excel sheet. The excel sheet contains macros, so I need to set 'UseExcel' to be true, this opens an instance of Excel which is fine, but I can't find any way to close the instance when I am done..... am I missing something?
Thank you all in advance!

Answers (0)

Asked:

on 13 Apr 2021

Commented:

on 13 Apr 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!