S
shaggles
I have some code to export a report to Excel using
DoCmd.OutputTo but I want to make it an If...Then
statement where if the Excel file exists then the file is
exported to a differant file name. I've tried
If "C:\Book1.xls" = True...
If "C:\Book1.xls" Is Not Null...
If "C:\Book1.xls" Exists...
If "C:\Book1.xls" Is Object...
But I can't figure out how to write it. Can anyone help
me with this?
DoCmd.OutputTo but I want to make it an If...Then
statement where if the Excel file exists then the file is
exported to a differant file name. I've tried
If "C:\Book1.xls" = True...
If "C:\Book1.xls" Is Not Null...
If "C:\Book1.xls" Exists...
If "C:\Book1.xls" Is Object...
But I can't figure out how to write it. Can anyone help
me with this?