Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Developer Outlook Addins > Create an Outlo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 1622 of 1746
Post > Topic >>

Create an Outlook appointment with VB and wait

by "A. Hofmeister" <A.Hofmeister@[EMAIL PROTECTED] > Nov 23, 2007 at 12:08 PM

Hello,

I have this problem:

I am working with Microsoft Outlook 2003.

I developed a visual basic program (coding below). This program creates
and 
saves an Outlook appointment and displays the appointment on the screen.

My question:
How can I change my Visual Basic program so that it waits until the is 
closed by the user? After the user has closed the appointment the program 
shall continue.

Is this possible to do?


Thanks in advance!
Andy

Visual Basic Coding

[CODE]

Sub TermineAnlegen(Pfad As String)

  Dim i As Long
  Dim objOutlook as Object
  Dim objTermin As Outlook.AppointmentItem
  Dim apptTitel As String
  Dim apptStartDatum As Date
  Dim apptEndDatum As Date
  Dim apptOrt As String

  Set objOutlook = GetObject(, "Outlook.Application")
  Set objTermin = objOutlook.CreateItem(1)

  objTermin.Subject = apptTitel
  objTermin.Start = apptStartDatum
  objTermin.End = apptEndDatum
  objTermin.Location = apptOrt


  'Save appointment
  '----------------
  objTermin.Save

  'Display appointment
  '---------------
  objTermin.Display

'>>>>THE PROGRAM SHALL WAIT NOW
'>>>>UNTIL THE APPOINTMENT IS CLOSED<<<<


  Set objAnhang = Nothing
  Set objTermin = Nothing
  Set objOutlook = Nothing

End Sub

[/CODE]
 




 3 Posts in Topic:
Create an Outlook appointment with VB and wait
"A. Hofmeister"  2007-11-23 12:08:05 
Re: Create an Outlook appointment with VB and wait
"Mark J. McGinty&quo  2007-11-23 09:18:25 
Re: Create an Outlook appointment with VB and wait
"Ken Slovak - [MVP -  2007-11-24 15:52:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 8:59:02 CST 2008.