PC Review


Reply
Thread Tools Rate Thread

Default category

 
 
=?Utf-8?B?SGFyZGtlMDE=?=
Guest
Posts: n/a
 
      12th Apr 2005
How do i select a default catagory to automatically appear when a new meeting
is created? This will be so that all new meetings and appointments have a
default category.
 
Reply With Quote
 
 
 
 
ProfDD
Guest
Posts: n/a
 
      13th Apr 2005
It would involve creating a custom form.

 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      13th Apr 2005
If this is for your personal use, it's not difficult to do in VBA code in the built-in ThisOutlookSession module:

Dim WithEvents colInsp As Outlook.Inspectors

Private Sub Application_Startup()
Set colInsp = Application.Inspectors
End Sub

Private Sub colInsp_NewInspector(ByVal Inspector As Inspector)
Dim objAppt As Outlook.AppointmentItem

If Inspector.CurrentItem.Class = olAppointment Then
Set objAppt = Inspector.CurrentItem
With objAppt
If .Size = 0 Then
.Categories = "My Default Category"
End If
End With
End If
End Sub

The one oddity is that when the appointment opens, you won't see "My Default Category" in the Categories box at lower right, but if you click the Categories box, it definitely will appear there. I don't know of a workaround for that problem, but again if this is for your personal use, you can get used to it.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Hardke01" <(E-Mail Removed)> wrote in message news:CFAA9D0C-060E-4EC2-B314-(E-Mail Removed)...
> How do i select a default catagory to automatically appear when a new meeting
> is created? This will be so that all new meetings and appointments have a
> default category.

 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      13th Apr 2005
Check your macro security settings with Tools | Macro | Security . They need to be Medium or Low. *(I l keep mine at Medium.) Restart Outlook if you change the security level.

If you're new to Outlook VBA macros, these web pages should help you get started:

http://www.winnetmag.com/Articles/In...eID=21522&pg=1
http://www.outlookcode.com/d/vb.htm


--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Hardke01" <(E-Mail Removed)> wrote in message news:1AF81519-D724-4E4D-8C64-(E-Mail Removed)...
> Sue,
>
> Thanks for the help on that one.
> I have inserted the code into the "ThisOutlookSession" module and saved it
> as the default name of VBAProject.OTM
>
> Do i need to do anything else to get it to work?
> what do i do next to get it to implement this every time i start up outlook?
>
> Thanks
> Keith Harding
>
> "Sue Mosher [MVP-Outlook]" wrote:
>
>> If this is for your personal use, it's not difficult to do in VBA code in the built-in ThisOutlookSession module:
>>
>> Dim WithEvents colInsp As Outlook.Inspectors
>>
>> Private Sub Application_Startup()
>> Set colInsp = Application.Inspectors
>> End Sub
>>
>> Private Sub colInsp_NewInspector(ByVal Inspector As Inspector)
>> Dim objAppt As Outlook.AppointmentItem
>>
>> If Inspector.CurrentItem.Class = olAppointment Then
>> Set objAppt = Inspector.CurrentItem
>> With objAppt
>> If .Size = 0 Then
>> .Categories = "My Default Category"
>> End If
>> End With
>> End If
>> End Sub
>>
>> The one oddity is that when the appointment opens, you won't see "My Default Category" in the Categories box at lower right, but if you click the Categories box, it definitely will appear there. I don't know of a workaround for that problem, but again if this is for your personal use, you can get used to it.
>>
>> --
>> Sue Mosher, Outlook MVP
>> Author of
>> Microsoft Outlook Programming - Jumpstart for
>> Administrators, Power Users, and Developers
>> http://www.outlookcode.com/jumpstart.aspx
>>
>>
>> "Hardke01" <(E-Mail Removed)> wrote in message news:CFAA9D0C-060E-4EC2-B314-(E-Mail Removed)...
>> > How do i select a default catagory to automatically appear when a new meeting
>> > is created? This will be so that all new meetings and appointments have a
>> > default category.

>>

 
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
Calendar Default Category Reid Microsoft Outlook Calendar 2 22nd May 2010 09:06 AM
Choose a category as default? =?Utf-8?B?RnJlZCBBc3A=?= Microsoft Outlook Discussion 0 4th Jul 2007 12:06 AM
Can we set a particular category as a "default" category for all messages (w/o using a template, etc.)? StargateFanFromWork Microsoft Outlook 2 7th Jul 2006 08:07 AM
Default Appointment - add Category mikkl Microsoft Outlook Calendar 0 2nd Mar 2006 11:00 PM
Creating a default category TV Microsoft Outlook Calendar 0 24th Aug 2004 12:00 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:55 AM.