LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default xltm saveas xlsm

I have the following code within an "xltm" file which I want to then save as
"xlsm":

Do
fName = Application.GetSaveAsFilename(InitialFileName:="ku pa",
filefilter:= _
" Excel Macro Enabled Workbook (*.xlsm), *.xlsm,")
Loop Until fName < False
ActiveWorkbook.SaveAs Filename:=fName

I get ERROR on last statement. How can I add "FileFormatValue = 52" to save
the file as a "MacroEnabled"
thanks
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make a .XLTM template file default to save as .XLSM type? NZCoyote Excel Discussion (Misc queries) 1 April 8th 10 06:01 AM
xlsm SaveAs xls Otto Moehrbach[_2_] Excel Programming 5 December 12th 09 06:39 PM
SaveAs - - provide option to Save As .xlsm or .xls Barb Reinhardt Excel Programming 6 April 30th 09 06:30 PM
SaveAs XLSM question Barb Reinhardt Excel Programming 6 October 2nd 08 05:57 PM
SaveAs xltm programmatically JNW Excel Programming 1 July 29th 08 04:11 PM


All times are GMT +1. The time now is 10:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"