+ Reply to Thread
Results 1 to 8 of 8

Object variable or with block variable not set

Hybrid View

  1. #1
    Piotr
    Guest

    Re: Object variable or with block variable not set

    Yes I do have Outlook, but i dont know how to check if the CreateObject
    is successful.


  2. #2
    Dave Peterson
    Guest

    Re: Object variable or with block variable not set

    Set OutApp = nothing
    on error resume next
    Set OutApp = CreateObject("Outlook.Application")
    on error goto 0

    if outapp is nothing then
    'something very bad happened
    else
    'it worked ok
    end if



    Piotr wrote:
    >
    > Yes I do have Outlook, but i dont know how to check if the CreateObject
    > is successful.


    --

    Dave Peterson

  3. #3
    Piotr
    Guest

    Re: Object variable or with block variable not set

    Unfortunatly CreateObject("Outlook.Application") failed no idea ...


  4. #4
    Bob Phillips
    Guest

    Re: Object variable or with block variable not set

    What error? Do you want to post the workbook at www.cjoint.com to look?

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Piotr" <hokah@wp.pl> wrote in message
    news:1135152843.332622.39060@f14g2000cwb.googlegroups.com...
    > Unfortunatly CreateObject("Outlook.Application") failed no idea ...
    >




  5. #5
    Dave Peterson
    Guest

    Re: Object variable or with block variable not set

    Maybe this would give a hint:

    Set OutApp = Nothing
    On Error Resume Next
    Set OutApp = CreateObject("Outlook.Application")
    If Err.Number <> 0 Then
    MsgBox Err.Number & vbLf & Err.Description
    Err.Clear
    End If
    On Error GoTo 0

    Piotr wrote:
    >
    > Unfortunatly CreateObject("Outlook.Application") failed no idea ...


    --

    Dave Peterson

  6. #6
    Piotr
    Guest

    Re: Object variable or with block variable not set

    Hi,
    This was caused by Kaspersky Antyvirus, it was keep on blocking my
    macros from executing in strange way.
    Thanks for help

    regards
    Peter


+ 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