Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


September 10, 2002

Adding Holidays to the Outlook Calendar

RSS
Subscribe to Windows IT Pro | See More Outlook Calendar Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

The calendar might say September, but 2003 will be here before you know it. It isn't too early to start thinking about how you and your Outlook users will fill your Calendar folders with next year's holidays. Outlook 2000 users especially should be interested in this topic because the holiday lists that Microsoft provided with that version run only through this year. (Outlook 98 and Outlook 97 ran out of holiday lists earlier.) Let's look at the typical way users add holidays to Outlook, then discuss alternatives you might want to consider between now and New Year's Eve.

The built-in way to add holidays to Outlook is for the end user to choose Tools, Options; click Calendar Options; then click Add Holidays. The Add Holidays to Calendar dialog box lists holidays by country and religion. Users select the check boxes for the country or religion whose holidays they want to import, then click OK to add the selected holidays to the default Calendar folder.

The holiday information that ships with Outlook is in a text file named outlook.hol in Outlook 2002 and outlook.txt in Outlook 2000 and earlier versions. One way to distribute a new list of holidays is to edit this file, adding the new holidays and a heading for them. Put the edited file on the end user's machine (using a logon script, for example), then tell the user to use the method above to select the check box for the heading you added and import new holidays.

The major drawback of this method is that it can't create recurring events. Instead of adding one New Year's Day event that recurs every January 1, it requires you to add a holiday entry for January 1, 2003; January 1, 2004; and so on.

If you want to provide recurring events for certain holidays, you can use a different method that depends on the iCalendar (vCalendar 2.0) standard. This method works only with Outlook 2002 because earlier versions don't support recurring iCalendar events and can't chain multiple iCalendar items together into a single file that Outlook can import.

The first step is to create an individual iCalendar .ics file for each holiday or other event that you want to distribute. To create an .ics file for a recurring event, open the event from your Outlook Calendar folder, choosing "Open the series" when prompted. Then, choose File, Save As to save the item as an iCalendar .ics file.

The next step is to open each saved .ics file in Notepad. An .ics file is nothing more than a text file in a specific format.

Next, open a blank instance of Notepad, in which you'll build one file with the information from all the individual .ics files. Paste the complete text of one .ics file into the blank Notepad file. Delete the END:VCALENDAR line at the end of the file. From the next .ics file, paste only the text from the BEGIN:VEVENT line through the END:VEVENT line. Continue pasting from each .ics file until you get to the last one. For this one, paste everything from BEGIN:VEVENT through the final END:VCALENDAR line at the end. Choose File, Save As to save the file with an .ics extension.

You can now distribute this file to users in an email message or over your intranet. Instruct users to save the file to their local hard drive. (They shouldn't open it directly as they usually do an .ics file.) Next, users must select File, Import and Export in Outlook to run the Import and Export Wizard. They should choose the "Import an iCalendar or vCalendar file (.vcs)" option. After users select the saved file and click OK, Outlook creates an item in the default Calendar for each of the items pasted into the bulk iCalendar file. You can also use this method to distribute company meeting notices and other events in one file that users can import into Outlook 2002.

If you don't have a pure Outlook 2002 environment, I can offer one more method—a custom Outlook form. After you publish this form in your Organizational Forms library, you can use it to distribute holiday information to anyone in your organization. Code behind the form scans a folder in which you've placed the holidays or events you want users to have and puts information about those appointment items into the body of the message. When users get the message, they can press a button to put all those items into their own Calendar folder. This approach doesn't handle recurring items, but you can adapt it to work with all versions of Outlook.

Transmit Holidays Form
http://www.slipstick.com/dev/olforms/holiday.htm

End of Article



Reader Comments
This comment is in regards to the instructions given below.

After following the instructions below, I found that once the .ics file is imported into Outlook 2002, each event splits between two days. After opening the imported event in Outlook, it appears that instead of the event lasting from 12:00 AM to 12:00 AM it goes from 7:00 AM to 7:00 AM. This causes the event to show up in the day of the event as well as the following day.


"If you want to provide recurring events for certain holidays, you can use a different method that depends on the iCalendar (vCalendar 2.0) standard. This method works only with Outlook 2002 because earlier versions don't support recurring iCalendar events and can't chain multiple iCalendar items together into a single file that Outlook can import.

The first step is to create an individual iCalendar .ics file for each holiday or other event that you want to distribute. To create an .ics file for a recurring event, open the event from your Outlook Calendar folder, choosing "Open the series" when prompted. Then, choose File, Save As to save the item as an iCalendar .ics file.

The next step is to open each saved .ics file in Notepad. An .ics file is nothing more than a text file in a specific format.

Next, open a blank instance of Notepad, in which you'll build one file with the information from all the individual .ics files. Paste the complete text of one .ics file into the blank Notepad file. Delete the END:VCALENDAR line at the end of the file. From the next .ics file, paste only the text from the BEGIN:VEVENT line through the END:VEVENT line. Continue pasting from each .ics file until you get to the last one. For this one, paste everything from BEGIN:VEVENT through the final END:VCALENDAR line at the end. Choose File, Save As to save the file with an .ics extension.

You can now distribute this file to users in an email message or over your intranet. Instruct users to save the file to their local hard drive. (They shouldn't open it directly as they usually do an .ics file.) Next, users must select File, Import and Export in Outlook to run the Import and Export Wizard. They should choose the "Import an iCalendar or vCalendar file (.vcs)" option. After users select the saved file and click OK, Outlook creates an item in the default Calendar for each of the items pasted into the bulk iCalendar file. You can also use this method to distribute company meeting notices and other events in one file that users can import into Outlook 2002."

J Docktre May 14, 2003


Check your date/time stamp to make sure you are using GMT. If the time ends in Z, you should offset your time with the appropriate offset.

Anonymous User January 31, 2005


Here's a batch file I wrote to automate what you're doing above:

http://matt.armbruster.org/test/Make_ICS_Calendar.zip

mattsrc December 20, 2007 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Friday at PASS Europe 2006

Kevin talks about the closing day of the event and shares a funny Microsoft film. ...

Escape From Yesterworld

Kevin points you to the funniest SQL Server website ever! ...

The Desktop tab is missing from the Display Properties in Windows XP?

...


Related Articles Outlook Tips & Techniques

Exchange Server and Outlook Whitepapers Anonymizers – The Latest Threat to Your Web Security

Replay for Exchange: Enterprise Protection and an Affordable Price

ETX Driving Embedded I/O

Related Events Check out our list of Free Email Newsletters!

Exchange Server and Outlook eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

The Expert's Guide for Exchange 2003: Preparing for, Moving to, and Supporting Exchange Server 2003

Related Exchange Server and Outlook Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.

Exchange & Outlook UPDATE eNewsletter
News, strategies, products, and developments in Exchange Server and Outlook messaging.
Job Openings in IT


ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

WinConnections Conference Fall 2008
Don’t miss the premier event for Microsoft IT Professionals in Las Vegas, November 10-13. Register and book your room by August 25 and receive a FREE room night (based on a three night minimum stay).

Maximize your SharePoint Investment – 8 Cities
Discover best practices and tips for both architecting and administering SharePoint. Early Bird Price of $99 through Sept 15th.

Find a new job now on the all new IT Job Hound!
Search jobs, post your resume, and set up job e-mail alerts!

Master SharePoint with 3 eLearning Seminars
Learn how to build a better SharePoint infrastructure and enable powerful collaboration with MVPs Dan Holme and Michael Noel. Register today!

Top Tools for Virtualization Disaster Recovery & Replication
View this web seminar on August 14th to learn about two tools that will result in faster backup and restore with P2V disaster recovery.

SharePointConnections Conference Fall 2008
Don’t miss the premier event for Microsoft IT Professionals in Las Vegas, November 10-13. Register and book your room by August 25 and receive a FREE room night (based on a three night minimum stay).

VMworld 2008 - Sign Up Today!
Join your peers on September 15-18 at The Venetian Hotel in Las Vegas as VMware hosts VMworld 2008, the leading Virtualization event.



When managing just VMware isn’t enough
Plan/Manage/Secure – NetIQ VMware management. Download whitepaper.

What’s up with your network? Find out with ipMonitor
Availability monitoring for servers, applications and networks – FREE trial

Microsoft® Tech•Ed EMEA 2008 IT Professionals
Advance your thinking with new ideas and practical real-world solutions at Microsoft’s FIVE day technical infrastructure conference 3-7 Nov., 2008. Register before 26 September 2008 to save €300.

Order Your Fundamentals CD Today!
Gain an introduction to Exchange, learn server security requirements, and understand how unified communications can play a role in your messaging strategies with this free Exchange CD.

Are You Really Compliant with Software Regulations?
View this web seminar that will help you with compliance best practices and check out a management solution to assure that you won’t be in jeopardy of an audit.

Virtualization Congress Oct. 14-16 in London
Don't miss Virtualization Congress, the premiere EMEA conference dedicated to hardware, OS and application virtualization. Oct. 14-16 in London.
Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technical Resources Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing