Thanks, but that does not work because the file is not my activeworkbook. I have an active workbook and I need to then switch over to the recently opened file.