View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
Gord Dibben Gord Dibben is offline
external usenet poster
 
Posts: 22,906
Default Saving in .xlsm format by default

Cool!

I finally installed 2007 on the weekend but will be a while until up to
speed with these sorts of things.


Gord

On Tue, 27 Jan 2009 23:32:32 +0100, "Ron de Bruin"
wrote:

I would suggest Excel has no idea what a new unsaved workbook contains.


There is a way to test it in 2007 Gord
This is new in 2007 HasVBProject

See how I use it here
http://www.rondebruin.nl/saveas.htm

Case 52:
If .HasVBProject Then
FileExtStr = ".xlsm": FileFormatNum = 52
Else
FileExtStr = ".xlsx": FileFormatNum = 51
End If