Thread: [Solved] Save as File for Excel 2010
View Single Post
 
Old 11-18-2015, 08:25 AM
mbesspiata mbesspiata is offline Windows 7 64bit Office 2010 64bit
Advanced Beginner
 
Join Date: Mar 2011
Location: Virginia
Posts: 57
mbesspiata is on a distinguished road
Question Save as File for Excel 2010

I have macros where I can save a file as Excel 2007 but I need to update those mascros in vba to save the file as Excel 2010. Below is what I currently have.
Dim FName As String
FName = Application.GetSaveAsFilename(FileFilter:="Excel 97-2003 Workbook (*.xls),*.xls")
ActiveWorkbook.SaveAs Filename:=FName, FileFormat:=xlExcel8

How do I change this to make it save as Excel 2010, xlsx?

thanks

Mike
Reply With Quote