LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Outlook Object Model via Excel -- return code after send?

In my Outlook 2000 book, in a paragraph describing canceling an
event...

"...when an event is cancelled, the event still fires, but the
consequences of the event is cancelled. For example, if the user
failed to enter data in the required field LastName, the 'Write' event
can be used to warn the user and cancel the saving of the edited item,
as we see in the code in Listing 4-14.

Function Item_Write()
if Item.LastName = "" then
msgbox "Need to enter last name"
Item_write = False
end if

End Function
'end quote

So perhaps some code in the send event (not tested)

Function Item_Send
If Item_Send = false then
Answer = Msgbox "Do you really want to cancel the Save?"
If Answer = 1 then
Item_send = false
else
Item_Send = True
end if
end if
End Function

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook - Object Model Guardian Braindeadbeachbum Excel Programming 7 May 10th 06 08:26 PM
Send Mail - Code to test whether Lotus Notes / Outlook is used Andibevan[_4_] Excel Programming 2 August 12th 05 03:10 PM
How can I use Outlook express to send mail rather than Outlook by VBA code new.microsoft.com Excel Programming 5 August 3rd 05 03:45 PM
How can I use Outlook express to send mail rather than Outlook by VBA code new.microsoft.com Excel Programming 1 August 1st 05 12:45 PM
Confusion about how the Window object fits into the Excel object model Josh Sale Excel Programming 11 April 15th 05 06:08 PM


All times are GMT +1. The time now is 08:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"