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

add appointment to additional calander?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 16th 06, 05:26 AM posted to microsoft.public.outlook.program_vba
Sydney
external usenet poster
 
Posts: 24
Default add appointment to additional calander?

Hi

I have found the code to open the calander from an attached mailbox. I cant
work out how to create a new appointment. The options i end up with allow
to display the additional calander and no reference to create an
appointment.

Is this possible?
Im also using similiar code to open a new message from an additional mailbox
and run into the same problem.

my stuff so far:

Dim myOlApp As Outlook.Application
Dim myNamespace As Outlook.NameSpace
Dim myRecipient As Outlook.Recipient
Dim CalendarFolder As Outlook.MAPIFolder
Set myOlApp = CreateObject("Outlook.Application")
Set myNamespace = myOlApp.GetNamespace("MAPI")
Set myRecipient = myNamespace.CreateRecipient("IT") 'open additional
calendar
myRecipient.Resolve
Set CalendarFolder = myNamespace.GetSharedDefaultFolder _
(myRecipient, olFolderCalendar)
CalendarFolder.Display 'opens the IT Calendar..find a way to add
appointment?

With thanks


Ads
  #2  
Old January 16th 06, 11:18 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default add appointment to additional calander?

If you have write permissions on that folder, this will work. Just set a
reference to the CalendarFolder.Items object, and call the Add method from it
using olAppointmentItem as the argument.

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Sydney" wrote:

Hi

I have found the code to open the calander from an attached mailbox. I cant
work out how to create a new appointment. The options i end up with allow
to display the additional calander and no reference to create an
appointment.

Is this possible?
Im also using similiar code to open a new message from an additional mailbox
and run into the same problem.

my stuff so far:

Dim myOlApp As Outlook.Application
Dim myNamespace As Outlook.NameSpace
Dim myRecipient As Outlook.Recipient
Dim CalendarFolder As Outlook.MAPIFolder
Set myOlApp = CreateObject("Outlook.Application")
Set myNamespace = myOlApp.GetNamespace("MAPI")
Set myRecipient = myNamespace.CreateRecipient("IT") 'open additional
calendar
myRecipient.Resolve
Set CalendarFolder = myNamespace.GetSharedDefaultFolder _
(myRecipient, olFolderCalendar)
CalendarFolder.Display 'opens the IT Calendar..find a way to add
appointment?

With thanks



  #3  
Old January 19th 06, 11:42 PM posted to microsoft.public.outlook.program_vba
Sydney
external usenet poster
 
Posts: 24
Default add appointment to additional calander?

Got it thanks!
I also needed to declare a variable as Outlook.AppointmentItem. Perhaps i
could have worked without that but hey...its working



"Eric Legault [MVP - Outlook]" wrote in
message ...
If you have write permissions on that folder, this will work. Just set a
reference to the CalendarFolder.Items object, and call the Add method from

it
using olAppointmentItem as the argument.

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Sydney" wrote:

Hi

I have found the code to open the calander from an attached mailbox. I

cant
work out how to create a new appointment. The options i end up with

allow
to display the additional calander and no reference to create an
appointment.

Is this possible?
Im also using similiar code to open a new message from an additional

mailbox
and run into the same problem.

my stuff so far:

Dim myOlApp As Outlook.Application
Dim myNamespace As Outlook.NameSpace
Dim myRecipient As Outlook.Recipient
Dim CalendarFolder As Outlook.MAPIFolder
Set myOlApp = CreateObject("Outlook.Application")
Set myNamespace = myOlApp.GetNamespace("MAPI")
Set myRecipient = myNamespace.CreateRecipient("IT") 'open additional
calendar
myRecipient.Resolve
Set CalendarFolder = myNamespace.GetSharedDefaultFolder _
(myRecipient, olFolderCalendar)
CalendarFolder.Display 'opens the IT Calendar..find a way to

add
appointment?

With thanks





 




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
Adding additional text to an appointment in addition to the subjec Aly Outlook - Calandaring 3 March 10th 06 02:22 PM
Is there an easy way to add holidays to an ADDITIONAL calendar? Julie Outlook - Calandaring 1 March 1st 06 08:35 PM
How to add additional status' to Show Time As on Calendar? Jeff Outlook - Calandaring 1 January 20th 06 08:16 PM
how do i fix a corrupt calander file, i cant add new appointme Amin from TO Outlook - Calandaring 0 January 20th 06 01:18 AM
How do I sync my laptop outlook calander w/ my desktop calander? Fumbly Outlook - Calandaring 1 January 17th 06 01:17 PM


All times are GMT +1. The time now is 08:34 PM.


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.