winglessbuzzard
New Member
- Joined
- Jan 12, 2009
- Messages
- 29
Is there any way in VBA to create a new workbook with the extension of .xlsm instead of .xls (comparability mode) in excel 2007?
Workbooks.add has an option to create two excel4 workbook versions, a chartsheet, and a regular worksheet... but doesn't seem to have an option for the type of file to create.
My reason for wanting this is that I have a code that builds a table that goes beyond 65k rows... and I don't want to go through the hastle of breaking the table up programatically or save-as'ing the new workbook as .xlsm, closing it, then reopening it (programatically).
It seems there should be some way to specify the extension of a file you are creating upon its creation rather than on it's save.
Workbooks.add has an option to create two excel4 workbook versions, a chartsheet, and a regular worksheet... but doesn't seem to have an option for the type of file to create.
My reason for wanting this is that I have a code that builds a table that goes beyond 65k rows... and I don't want to go through the hastle of breaking the table up programatically or save-as'ing the new workbook as .xlsm, closing it, then reopening it (programatically).
It seems there should be some way to specify the extension of a file you are creating upon its creation rather than on it's save.