I'm trying to figure out how to export based on a list box. here is the code that i have, and for some reason its not working.
Any help would be greatly appreciated
Code:
If (lstExport.Selected(1) = vbTrue) Then
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "tblSaveMVROutlets", "C:\Maps_MVRs\Append_Work_Files\Analysis\MVRs_Outlets_Export.xls", True
MsgBox "Exported", vbOKOnly
End If
End Sub
Comment