The shortcut Ctrl+W is to close a workbook. If you saved your work, the workbook will be closed. If you did not save your work, a saving reminder will appear.
Step 1: Click anywhere in the worksheet;
Step 2: Pressing and hold the"Ctrl" key, and press the letter "W" from the keyboard. The file will close, if you already saved the worksheet;
Step 3: A warning message will appear if not saved yet;