PC Review


Reply
Thread Tools Rate Thread

create appointment for current folder

 
 
Thelen
Guest
Posts: n/a
 
      17th Aug 2005
Situation Exchange env.. Current folder is a calendar folder of another
user (USER2), where USER1 has the rights to create/modify etc. a appointment
in this folder.

When USER1 creates a new appointmnt by pressing Ctrl+N and then saves it, it
will be saved in the calendar of USER2 because this is the current folder.

I try to create a new appointment by script (and modify start date), but
when the USER1 later saves this appointment, it will be saved in USER1's
calendar and not in the current folder!
This is my code (myOO is the application object)

sub CreateNewAppm(X)
Dim MyAppm
....
Set MyAppm = myOO.CreateItem(olAppointmentItem)
....
MyAppm.Display
end sub

How can I solve this problem?

Thanks
J. Thelen


 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      17th Aug 2005
To create a new instance of an item in a particular folder, use the Add method on the target folder's Items collection.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Thelen" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Situation Exchange env.. Current folder is a calendar folder of another
> user (USER2), where USER1 has the rights to create/modify etc. a appointment
> in this folder.
>
> When USER1 creates a new appointmnt by pressing Ctrl+N and then saves it, it
> will be saved in the calendar of USER2 because this is the current folder.
>
> I try to create a new appointment by script (and modify start date), but
> when the USER1 later saves this appointment, it will be saved in USER1's
> calendar and not in the current folder!
> This is my code (myOO is the application object)
>
> sub CreateNewAppm(X)
> Dim MyAppm
> ...
> Set MyAppm = myOO.CreateItem(olAppointmentItem)
> ...
> MyAppm.Display
> end sub
>
> How can I solve this problem?
>
> Thanks
> J. Thelen
>
>

 
Reply With Quote
 
Thelen
Guest
Posts: n/a
 
      17th Aug 2005
Hello Sue Mosher,

Set MyAppm =
MyOO.ActiveExplorer.CurrentFolder.Items.Add(olAppointmentItem)

works. Thanks a lot.
J. Thelen


"Sue Mosher [MVP-Outlook]" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
To create a new instance of an item in a particular folder, use the Add
method on the target folder's Items collection.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Thelen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Situation Exchange env.. Current folder is a calendar folder of another
> user (USER2), where USER1 has the rights to create/modify etc. a
> appointment
> in this folder.
>
> When USER1 creates a new appointmnt by pressing Ctrl+N and then saves it,
> it
> will be saved in the calendar of USER2 because this is the current folder.
>
> I try to create a new appointment by script (and modify start date), but
> when the USER1 later saves this appointment, it will be saved in USER1's
> calendar and not in the current folder!
> This is my code (myOO is the application object)
>
> sub CreateNewAppm(X)
> Dim MyAppm
> ...
> Set MyAppm = myOO.CreateItem(olAppointmentItem)
> ...
> MyAppm.Display
> end sub
>
> How can I solve this problem?
>
> Thanks
> J. Thelen
>
>



 
Reply With Quote
 
Thelen
Guest
Posts: n/a
 
      16th Sep 2005
Hello Sue Mosher,

I wrote
> Set MyAppm =
> MyOO.ActiveExplorer.CurrentFolder.Items.Add(olAppointmentItem)
> works.


but it does not work with Outlook 2000. How can I create a new appointment
there?

J. Thelen



"Sue Mosher [MVP-Outlook]" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
To create a new instance of an item in a particular folder, use the Add
method on the target folder's Items collection.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Thelen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Situation Exchange env.. Current folder is a calendar folder of another
> user (USER2), where USER1 has the rights to create/modify etc. a
> appointment
> in this folder.
>
> When USER1 creates a new appointmnt by pressing Ctrl+N and then saves it,
> it
> will be saved in the calendar of USER2 because this is the current folder.
>
> I try to create a new appointment by script (and modify start date), but
> when the USER1 later saves this appointment, it will be saved in USER1's
> calendar and not in the current folder!
> This is my code (myOO is the application object)
>
> sub CreateNewAppm(X)
> Dim MyAppm
> ...
> Set MyAppm = myOO.CreateItem(olAppointmentItem)
> ...
> MyAppm.Display
> end sub
>
> How can I solve this problem?
>
> Thanks
> J. Thelen
>
>



 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      16th Sep 2005
What in particular doesn't work? What's the code context? In other words, are you writing a COM add-in, an external application, a script?

You can use the Namespace.GetSharedDefaultFolder to return another user's Calendar folder.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Thelen" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Hello Sue Mosher,
>
> I wrote
>> Set MyAppm =
>> MyOO.ActiveExplorer.CurrentFolder.Items.Add(olAppointmentItem)
>> works.

>
> but it does not work with Outlook 2000. How can I create a new appointment
> there?
>
> J. Thelen
>
>
>
> "Sue Mosher [MVP-Outlook]" <(E-Mail Removed)> schrieb im Newsbeitrag
> news:(E-Mail Removed)...
> To create a new instance of an item in a particular folder, use the Add
> method on the target folder's Items collection.
>
> "Thelen" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Situation Exchange env.. Current folder is a calendar folder of another
>> user (USER2), where USER1 has the rights to create/modify etc. a
>> appointment
>> in this folder.
>>
>> When USER1 creates a new appointmnt by pressing Ctrl+N and then saves it,
>> it
>> will be saved in the calendar of USER2 because this is the current folder.
>>
>> I try to create a new appointment by script (and modify start date), but
>> when the USER1 later saves this appointment, it will be saved in USER1's
>> calendar and not in the current folder!
>> This is my code (myOO is the application object)
>>
>> sub CreateNewAppm(X)
>> Dim MyAppm
>> ...
>> Set MyAppm = myOO.CreateItem(olAppointmentItem)
>> ...
>> MyAppm.Display
>> end sub
>>
>> How can I solve this problem?
>>
>> Thanks
>> J. Thelen
>>
>>

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create Meeting Request message from current appointment? =?Utf-8?B?UmFmYWVs?= Microsoft Outlook Form Programming 1 20th Aug 2007 09:32 PM
Create folder (contact or appointment) tonyl Microsoft Outlook Program Addins 1 8th Feb 2007 04:55 PM
Re: Create an Appointment in a Specific Folder Sue Mosher [MVP-Outlook] Microsoft Outlook VBA Programming 0 18th Dec 2006 03:01 PM
cannot open a current or create a new appointment =?Utf-8?B?c2FpbnRl?= Microsoft Outlook Calendar 1 20th May 2005 12:12 PM
Create appointment in shared folder via VBA Tom Microsoft Outlook Calendar 1 31st May 2004 03:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:04 PM.