I have a macro to open a TXT file into excel and sort the data, I
would like the file to be saved as .xls file and today's date,
i.e test081106.xls
I tried this macro:
Sub AddSaveAsNewWorkbook()
Dim Wk As Workbook
Set Wk = Workbooks.Add
Application.DisplayAlerts = False
Wk.SaveAs Filename:="C:\MyData\SalesData.xls" Format=
(Date, "yyyymmdd") & ".xls"
End Sub
and I get an error. Can anyone please shed some light on this and
tell me what I'm doing wrong???