msoutlook.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Working with appointments - parameter not found

 
Post new topic   Reply to topic    msoutlook.org Forum Index -> MS Office Outlook
Author Message
Michael Mueller



Joined: 15 Aug 2007
Posts: 2

PostPosted: Wed Jan 16, 2008 4:12 pm    Post subject: Working with appointments - parameter not found Reply with quote

Hi.

[Outlook 2003 - SP2]

I create a new appointment with this code:

Dim AI As AppointmentItem
Set AI = ThisOutlookSession.CreateItem(olAppointmentItem)

Subject, body, start, duration,... can be set very easily

A manualy new appointment also includes a field called "Label" where
color-settings can be done (e.g. None, Important, Business, Personal, ...).
But I can't find any expression for the AppointmentItem to set this label.

Is it possible to set this coloring though VBA?
Or will I have to change the color manually later after?

Thanks
Michi

Archived from group: microsoft>public>office>developer>outlook>vba
Back to top
View user's profile Send private message
Sue Mosher [MVP-Outlook]



Joined: 12 Aug 2007
Posts: 656

PostPosted: Wed Jan 16, 2008 12:59 pm    Post subject: Re: Working with appointments - parameter not found Reply with quote

You must use a low-level API, such as CDO 1.21 or Redemption. See http://www.outlookcode.com/codedetail.aspx?id=139

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Michael Mueller" wrote in message $ns9$1@news4.fe.internet.bosch.com...
> Hi.
>
> [Outlook 2003 - SP2]
>
> I create a new appointment with this code:
>
> Dim AI As AppointmentItem
> Set AI = ThisOutlookSession.CreateItem(olAppointmentItem)
>
> Subject, body, start, duration,... can be set very easily
>
> A manualy new appointment also includes a field called "Label" where
> color-settings can be done (e.g. None, Important, Business, Personal, ....).
> But I can't find any expression for the AppointmentItem to set this label.
>
> Is it possible to set this coloring though VBA?
> Or will I have to change the color manually later after?
>
> Thanks
> Michi
>
>
Back to top
View user's profile Send private message
Michael Mueller



Joined: 15 Aug 2007
Posts: 2

PostPosted: Fri Jan 18, 2008 6:50 pm    Post subject: Re: Working with appointments - parameter not found Reply with quote

> > A manualy new appointment also includes a field called "Label" where
> > color-settings can be done (e.g. None, Important, Business, Personal,
> > ...). But I can't find any expression for the AppointmentItem to set
> > this label.
>
> You must use a low-level API, such as CDO 1.21 or Redemption. See
> http://www.outlookcode.com/codedetail.aspx?id=139

Thanks, Redemption worked fine.

Michi

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msoutlook.org Forum Index -> MS Office Outlook All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group