+ Reply to Thread
Results 1 to 6 of 6

make outlook visible

  1. #1
    gopher
    Guest

    make outlook visible

    After using a bit of code that send an email to outlook I get the email
    warning message. Sometimes that message remains in the backround.

    How do I bring the allready open outlook program to the foreground on
    my desktop in VBA code?


  2. #2
    Bob Phillips
    Guest

    Re: make outlook visible

    olApp.Visible = True

    --

    HTH

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


    "gopher" <[email protected]> wrote in message
    news:[email protected]...
    > After using a bit of code that send an email to outlook I get the email
    > warning message. Sometimes that message remains in the backround.
    >
    > How do I bring the allready open outlook program to the foreground on
    > my desktop in VBA code?
    >




  3. #3
    gopher
    Guest

    Re: make outlook visible

    it's still not working,...

    Dim ol As Object, myItem As Object
    Set ol = CreateObject("outlook.application")
    Set myItem = ol.CreateItem(olMailItem)
    myItem.To = Range("E2").Value
    myItem.Subject = "A NEW PURCHASE ORDER HAS BEEN CREATED"
    myItem.Body = "file:" & F & Chr(13) & Chr(13)
    myItem.Body = myItem.Body & "This message was automatically
    sent By Master PO 3.0"
    myItem.Display
    olApp.Visible = True ' i get an error here.


  4. #4
    Phil
    Guest

    Re: make outlook visible

    Wrong newsgroup: see microsoft.public.outlook



    "gopher" <[email protected]> a écrit dans le message de news:
    [email protected]...
    > After using a bit of code that send an email to outlook I get the email
    > warning message. Sometimes that message remains in the backround.
    >
    > How do I bring the allready open outlook program to the foreground on
    > my desktop in VBA code?
    >




  5. #5
    Bob Phillips
    Guest

    Re: make outlook visible

    Right newsgroup, he is doing it from Excel via automation.

    --

    HTH

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


    "Phil" <[email protected]> wrote in message
    news:[email protected]...
    > Wrong newsgroup: see microsoft.public.outlook
    >
    >
    >
    > "gopher" <[email protected]> a écrit dans le message de news:
    > [email protected]...
    > > After using a bit of code that send an email to outlook I get the email
    > > warning message. Sometimes that message remains in the backround.
    > >
    > > How do I bring the allready open outlook program to the foreground on
    > > my desktop in VBA code?
    > >

    >
    >




  6. #6
    Bob Phillips
    Guest

    Re: make outlook visible

    That is because you called it ol, so you would use

    ol.Visible = True

    --

    HTH

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


    "gopher" <[email protected]> wrote in message
    news:[email protected]...
    > it's still not working,...
    >
    > Dim ol As Object, myItem As Object
    > Set ol = CreateObject("outlook.application")
    > Set myItem = ol.CreateItem(olMailItem)
    > myItem.To = Range("E2").Value
    > myItem.Subject = "A NEW PURCHASE ORDER HAS BEEN CREATED"
    > myItem.Body = "file:" & F & Chr(13) & Chr(13)
    > myItem.Body = myItem.Body & "This message was automatically
    > sent By Master PO 3.0"
    > myItem.Display
    > olApp.Visible = True ' i get an error here.
    >




+ 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