Hi, I am displaying a dialogbox to the user. If the user clicks the "Cancel" button I want to show a message box, then I want to continue displaying the dialogbox. The best I can come up with is...
Do
comdia.Filter = "*.doc"
comdia.InitDir = "C:\"
comdia.filename = "file01"
comdia.ShowSave
On Error GoTo cancelmessage
cancelmessage:
MsgBox "You must save this document."
Loop Until comdia.filename <> ""
But it ain't working. And ideas out there? Thanks.