I have open a master workbook. I am using Application.GetOpenFilename to allow the user to select and open another workbook from which data is extracted via vba. Once this is done I want this file to be closed - I think I need the filename, rather than filepath to achieve this.
I have tried using MyName = ThisWorkbook.Name once the book has been opened, but it always seem to return the name for the masterbook. Is there a way to extract the filename from the opened filepath, or otherwise close it?
It will not necessarily be the active book either.
Thanks
Bookmarks