Save as has the wrong extension when opening a 'XLTM' file or when opening a 'XLSM' through Microsoft.Office.Interop.Excel Workbook.Add() #4183
Labels
Area: Excel
Issue related to Excel add-ins
Needs: attention 👋
Waiting on Microsoft to provide feedback
Your Environment
Expected behavior
When adding a 'XLSM' through
_application.Workbooks.Add(path)
when going to File -> Save as the extension 'XLSX' shows. The same happens when opening a 'XLTM' file and going to File -> Save as the extension 'XLSX' shows.Current behavior
When opening any 'XLTM' or the 'XLSM' through the method i would expect to have the 'XLSM' extension pre selected instead of the default 'XLSX'.
When it's a new file and using the
CTRL + S
shortcut it does have the correct extension preselected.Steps to reproduce
Create a macro enabled template with the 'XLTM' extension.
Open the Template by double clicking it.
Enable content
of the document.
Go to File -> Save as and see the extension that is selected.
Create a macro enabled excel file with the 'XLSM' extension
Add the file with
_application.Workbooks.Add(path)
Open the new Excel file in your application.
Go to File -> Save as and see the extension that is selected.
Useful logs
The text was updated successfully, but these errors were encountered: