Xirrus1983
New Member
- Joined
- Nov 11, 2008
- Messages
- 37
I have a macro that I am using to save the file from a cell on a worksheet, but the save has to be in "xlsx" format:
Sub SaveAs()
Dim FName As String
Dim FPath As String
FName = ActiveWorkbook.Sheets("DATA INPUT").Range("C2")
FPath = "C:\Documents and Settings\User\My Documents"
ActiveWorkbook.SaveAs Filename:=FPath & "\" & FName & ".xlsx"
End Sub
It will allow it to be saved as "xls" and "xlsm" but not "xlsx.
Thanks in advanced
Sub SaveAs()
Dim FName As String
Dim FPath As String
FName = ActiveWorkbook.Sheets("DATA INPUT").Range("C2")
FPath = "C:\Documents and Settings\User\My Documents"
ActiveWorkbook.SaveAs Filename:=FPath & "\" & FName & ".xlsx"
End Sub
It will allow it to be saved as "xls" and "xlsm" but not "xlsx.
Thanks in advanced