Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default how to catch errors from outlook

hi all,
I'm calling outlook objects (items eg mails etc) in my excel sheet. all
code is written in excel macros, how do i catch the errors generating
from outlook like when outlook is busy and i cant get access to inbox.

TIA
amit

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default how to catch errors from outlook

Not exactly sure what you are doing in specifics, but normally try something
like

On Error Resume Next
Set myMail = olApp.whateverobject etc.
On Error Goto 0
If Not myMail is Nothing Then
'all is ok
End If

--

HTH

RP
(remove nothere from the email address if mailing direct)


"helpwithXL" wrote in message
ups.com...
hi all,
I'm calling outlook objects (items eg mails etc) in my excel sheet. all
code is written in excel macros, how do i catch the errors generating
from outlook like when outlook is busy and i cant get access to inbox.

TIA
amit



Reply
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
HOW TO CATCH A DIFFERENT/INCONSISTENT FORMULA FARAZ QURESHI Excel Discussion (Misc queries) 3 February 17th 09 05:51 PM
how to catch the second or more cell with vlookup Valley Excel Worksheet Functions 8 April 24th 06 12:02 AM
Excel Outlook Attachments opening after several errors everytime cito_support Setting up and Configuration of Excel 2 March 13th 06 06:15 PM
Responding to Outlook Errors when useing Sendmail!! John Baker Excel Programming 0 February 1st 04 09:31 PM
Catch-22 with Error 59 Dan[_28_] Excel Programming 0 November 13th 03 05:11 AM


All times are GMT +1. The time now is 09:38 PM.

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

About Us

"It's about Microsoft Excel"