dariuzthepole
Board Regular
- Joined
- Jul 23, 2008
- Messages
- 111
Hi all,
I have a macro that imports an XML file into a specific spreadsheet, e.g. figures.xls. When I import the XML, it firstly creates it in its own unsaved workbook, e.g. Book1. Obviously, if I keep figures.xls open and import multiple XML files, Book1 becomes Book2, Book3, Book4 etc.
I'm struggling to work out the code that will close any unsaved workbook, e.g. Book1, Book2 etc, without closing figures.xls, as technically after I have imported the data via the macro it will need saving itself.
Any information you can provide would be greatly appreciated!
I have a macro that imports an XML file into a specific spreadsheet, e.g. figures.xls. When I import the XML, it firstly creates it in its own unsaved workbook, e.g. Book1. Obviously, if I keep figures.xls open and import multiple XML files, Book1 becomes Book2, Book3, Book4 etc.
I'm struggling to work out the code that will close any unsaved workbook, e.g. Book1, Book2 etc, without closing figures.xls, as technically after I have imported the data via the macro it will need saving itself.
Any information you can provide would be greatly appreciated!