+ Reply to Thread
Results 1 to 3 of 3

how to catch errors from outlook

  1. #1
    helpwithXL
    Guest

    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. #2
    arunkhemlai
    Guest

    RE: how to catch errors from outlook

    Not sure, but have you tried with "On Error ..." yet?

    arunkhemlai

    "helpwithXL" wrote:

    > 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
    >
    >


  3. #3
    Bob Phillips
    Guest

    Re: 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" <[email protected]> wrote in message
    news:[email protected]...
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1