Forum Discussion

aekbus's avatar
aekbus
Brass Contributor
Jun 12, 2026
Solved

Excel Macro Creating a New Macro Enabled Spreadsheet

I have a macro enabled spreadsheet.  I have a macro in this spreadsheet that is trying to create another macro enabled spreadsheet.  I can create this new spreadsheet and save it as a .xlsm file.  Ho...
  • MKoski's avatar
    Jun 12, 2026

    Afternoon AEKBUS,

           Before you exit the newly created sheet, use a variable to get the active window caption (or workbook name) "V = ActiveWindow.Caption"