ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how to catch errors from outlook (https://www.excelbanter.com/excel-programming/327430-how-catch-errors-outlook.html)

helpwithXL

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


Bob Phillips[_6_]

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





All times are GMT +1. The time now is 07:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com