Having just tested it with our set up here, it seems that after the setting has been changed the new workbook still "wants to be" a .xlsx file. However, if I shut down Excel and relaunch it, then run the macro again without instructing another change to the default save as file type, then the new workbook wants to be a .xlsm file.
It seems as though the setting is only read by Excel at Excel startup time. Would that be right? I suppose this behaviour could also be something to do with that TRIM add-in.
Like I say though, it doesn't matter for my purposes as a permanent change to this setting is fine so thanks to you I can now test for this and display a short message asking the user to shutdown and relaunch Excel if the setting isn't correct when the workbook is opened which should naturally only appear once (or if the user changes the setting manually from .xlsm at any point)
Bookmarks