I have a button on a switchboard which exports a report to Microsoft Excel. The code for it is:<br><br>Private Sub cmdExportOpen_Click()<br>On Error GoTo cmdExportOpen_Click_Err<br><br> ' Sends rptOpenSuspenses to a Microsoft Excel file<br> DoCmd.OutputTo acReport, "rptOpenSuspenses", "MicrosoftExcel(*.xls)", "", False, ""<br><br>cmdExportOpen_Click_Exit:<br> Exit Sub<br><br>cmdExportOpen_Click_Err:<br> MsgBox Error$<br> Resume cmdExportOpen_Click_Exit<br><br>End Sub<br><br>This opens the OutputTo window, which displays the directory where the report is to be saved. But if I decide not to save the report at this time and click the Cancel button instead, I get a message stating that "The OutputTo action was cancelled." I want to stop this message from popping up. I tried using DoCmd.SetWarnings False, but the message still comes up. What else can I try?<br><br>Thanks!<br> <p>Linda Adams<br><a href=mailto:Garridon@aol.com>Garridon@aol.com</a><br><a href= Adams Online</a><br>I'm a professional writer, published internationally.