0
I have an excel book in .xlsm format (it contains code) and, with this extension, it does not give me any type of error. On the other hand, saving as .xltm gives me the following error message:
"This workbook contains external data. Do you want Microsoft Excel to clear the data before saving the template, and then automatically refresh the data whenever the template is opened? "
The strange thing is that I have reviewed the entire book and there are no external links: I have reviewed (in all book sheets): i) formulas, ii) data connections, iii) conditional formats, iv) names. It haven't pivot tables.
I did the .xlsm in Excel 2010 and I save it as .xltm in Excel 2010 and in Excel 2016. In both cases I have the same problem. I tried in Windows 7 and Windows 10 too.
Why do I get this error and how can I fix it?
Thank you very much!

The book has 3 sheets. When I delete one of them (and only this one) the problem disappears:Then, I focus on this sheet and I delete row by row, element by element (button of macro, graph...) and always the problem persists. Even I delete the whole rows and objects and the problem persists. Only when I delete completely the sheet, the problem desappears.... Could be a hidden property of this specific sheet?? – Shivoham – 2018-04-11T06:55:26.213