Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Calendaring / April 2005

Tip: Looking for answers? Try searching our database.

Default category

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hardke01 - 12 Apr 2005 11:28 GMT
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.
ProfDD - 13 Apr 2005 06:37 GMT
It would involve creating a custom form.
Sue Mosher [MVP-Outlook] - 13 Apr 2005 13:36 GMT
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.

Signature

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

> 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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.