A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Creating new Appointment out of Custom Form



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old May 8th 06, 12:13 PM posted to microsoft.public.outlook.program_vba
Marc Herbrik
external usenet poster
 
Posts: 2
Default Creating new Appointment out of Custom Form

Hi,

I need help! How do i create a Appointment out of an Custom Appointment
form.

Details:

i have a Custom Appointment Form with Two Fields! One named Date an one
named Begin. I also have a Button to Create a Appointment.

Problem:

Everytime i create an Appointment Outlook creates an normal Appointment. I
need to have the same Custom Appointment.

Code on the Create Button:

Sub CreateAppointment_click()


'msgbox
Item.GetInspector.ModifiedFormPages.Item("Bericht" ).Controls("NächsterTermin").Text
& " " &
Item.GetInspector.ModifiedFormPages.Item("Bericht" ).Controls("TStart").Text

Set NewAppointmentItem = Application.CreateItem(1)

NewAppointmentItem.MessageClass = "IPM.Appointment.Vertriebstermin"

NewAppointmentItem.Start =
Item.GetInspector.ModifiedFormPages.Item("Bericht" ).Controls("NächsterTermin").Text
& " " &
Item.GetInspector.ModifiedFormPages.Item("Bericht" ).Controls("TStart").Text

NewAppointmentItem.Duration = 60

'NewAppointmentItem.Subject = "This is a test appointment"

'NewAppointmentItem.Location = "Timbuktu"

'NewAppointmentItem.Body = "This is just a test appointment - nothing to be
concerned about!"

NewAppointmentItem.Display()

End Sub





Thx for your time!

Regards Marc


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a custom appointment form Theresa Smallwood Outlook and VBA 11 May 15th 06 03:47 PM
Creating a custom appointment form Sue Mosher [MVP-Outlook] Outlook - Using Forms 10 May 15th 06 03:47 PM
Create a custom appointment form Theresa Smallwood Outlook - Using Forms 1 April 27th 06 09:14 PM
Emailing a contact vCard with custom form loses all custom info Kim Outlook - Using Contacts 7 April 27th 06 12:21 AM
Cannot programmatically open custom message in custom form ms Outlook - Using Forms 1 January 20th 06 03:01 PM


All times are GMT +1. The time now is 05:06 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.