According to this thread:
https://www.mrexcel.com/forum/excel-questions/1048556-vba-close-windows-explorer-window.html
this code closes a session of Windows Explorer:
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As Any, ByVal lpWindowName...