I use the following code to open a .xls file:
Dim appExcel As Excel.Application Set appExcel = CreateObject("Excel.Application") Dim strTheFile As String strTheFile = CurrentProject.Path & "template.xls" appExcel.Workbooks.Open strTheFile appExcel.Visible = True Dim strSheetName As String strSheetName = "DATA" appExcel.Sheets(strSheetName).Select With appExcel .Range("A1").Select .ActiveCell.Value = rstIn!fname & "'s Team" .Range("a2").Value = rstIn!PxWx & " 20" & rstIn!Year .Range("A6").Select End With
Now, how do I save the file with a different name?