Hi,
I have a macro called "Rapportage" stored in an Excel file called "Index".
This file is like a database and contains links to other xls files, e.g. "datasheet1".
When I run the macro Rapportage inside datasheet1 (Index file is open at the time), a "new workbook" is made with some data from datasheet1.
After that the file is saved and closed to a specific directory. (e.g. /rapportages/..)
I need this "new workbook" to have the same name as the datasheet...
this I tried with "ActiveWorkbook.name"
But instead the workbook is called index, the workbook name the macro is stored in.
Can anybody give me a tip, how I can save the new workbook with the workbook name the macro is ran from (datasheetX), and not the workbook the macro is stored in (index)?
thanks![]()
Bookmarks