Export version
Hey everyone, i am still a beginner using VBA and i have a problem
when i export a table to excel it saves it as a 5.0/95 Workbook
is there anyway to make it output as the current version?
this is my code:
Function funcExport(strTableName, strFileName As String)
On Error GoTo funcExport_Err
' Exports list to file
DoCmd.OutputTo acTable,strTableName, "MicrosoftExcel*.xls)", _
strFileName, False, "", 0
funcExport_Exit:
Exit Function
funcExport_Err:
MsgBox Error$
Resume funcExport_Exit
End Function
I have also tried "MicrosoftBiff8(*.xls)"
any help would be much appreciated
|