Suppress the save dialog, exceptions occur...

K

KevinH

I am trying to suppress the save dialog and cancel the save operation,
the following will throw an exception. Before the Olk2003 security patch
using Item.Close 1 would cancel the save, but now there isn't a way to
emulate this
behavior any ideas?
-------------------------------------
Option Explicit

'---------------------------------------------------------------
' FUNCTION: Item_Close
'---------------------------------------------------------------
Function Item_Close()
Item.Subject = Item.Subject + " - Modified"
If Not Item.Saved Then
'adding error handling will display the save
dialog
'On Error Resume Next
Item.Save
'On Error Goto 0
End If
Item_Close = True
End Function

'---------------------------------------------------------------
' FUNCTION: Item_Write
'---------------------------------------------------------------
Function Item_Write()
Item_Write = False
End Function
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top