There is a simple solution when it comes to closing opened files inside Word and Excel.
You can do this on a simple way by holding one button only.
Close all open Word and Excel files by holding the key Shift and clicking File, then the Close All option.
You’re done.