LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Vba - Opening Outlook with Vba

Hi all,

I am keep trying to generate an MS Outlook Task from Excel Vba.
I thought I can first open Outlook, and then trying to generate task o
note.
First of all, could anybody help me with the first step, opening M
Outlook?

Iam trying this code unsuccessfuly: (I use Outlook 03 with Xp prof)


Private Sub OpeningOutlook()
Dim OutLk As Application
Dim B As String

B = "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE"
Set Out = GetObject(B)
OutLk.Application.Open

OutLk.Application.Visible = True
'Here generating task or note
OutLk.Parent.Windows(1).Visible = True
OutLk.Application.Quit
End Sub


Thank you all!
Aldo

--
Message posted from http://www.ExcelForum.com

 
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 stop opening outlook in excel bill s Excel Discussion (Misc queries) 2 September 23rd 09 10:16 PM
Opening outlook in Excel chrisnsmith Excel Discussion (Misc queries) 1 February 28th 09 02:46 AM
Error opening Outlook 2002 cornucopia tours Excel Discussion (Misc queries) 1 February 23rd 07 07:54 PM
Opening Excel Files from Outlook Marilyn Excel Discussion (Misc queries) 4 October 23rd 06 03:18 PM
Error in code opening Outlook muziq2[_17_] Excel Programming 2 July 14th 04 05:09 AM


All times are GMT +1. The time now is 07:32 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"