Advertisement

04.28.2008 at 03:23AM PDT, ID: 23358232 | Points: 500
[x]
Attachment Details

Automate update of Outlook holiday file

Tags: Microsft, Outlook, 2003, Automatic update of holiday file
Hi,

I have the task of updating everyone's outlook calendar with the new bank holiday dates.  We use Outlook 2003 and the installed bank holidays end in 2007.  (see http://www.poremsky.com/howto/missinghol.htm)

I have downloaded the HOL file at the bottom of that page as the executable does not work on our version of Outlook for some reason.

What I would like to know is if there is a way to roll this out to all users without asking them to update it themselves.

Or if there is a function/third party software for Exchange that allows this to be done?

Many thanks,

Giles
Start your free trial to view this solution
Question Stats
Zone: Software
Question Asked By: Gilesmp
Question Asked On: 04.28.2008
Participating Experts: 1
Points: 500
Views: 0
Translate:
Loading Advertisement...
04.28.2008 at 09:51AM PDT, ID: 21455555

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.28.2008 at 09:54AM PDT, ID: 21455573

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.28.2008 at 09:58AM PDT, ID: 21455604

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.28.2008 at 10:02AM PDT, ID: 21455627

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.28.2008 at 06:44PM PDT, ID: 21458961

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.29.2008 at 02:02AM PDT, ID: 21460566

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.29.2008 at 03:24AM PDT, ID: 21460897

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.29.2008 at 03:37AM PDT, ID: 21460949

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.02.2008 at 12:52PM PDT, ID: 21489552

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 01:16AM PDT, ID: 21505542

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 02:42PM PDT, ID: 21578232

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
04.28.2008 at 09:51AM PDT, ID: 21455555

Rank: Genius

Hi, Gilesmp.

Getting the .hol file to the clients is simple.  You can apply them to a calendar with a little creative scripting.  I'm not aware of any third-party tools that do this at the Exchange server.  
 
04.28.2008 at 09:54AM PDT, ID: 21455573
I don't suppose you, or anyone else, have any creative scripting lying around? ;-) it's not really my strong point
 
04.28.2008 at 09:58AM PDT, ID: 21455604

Rank: Genius

Yeah, I've got a script that does this.  I'll have to modify it a little and you'll need to decide how to run it in a way that doesn't require any interaction.  When I use it in my office I send a link to the script and tell everyone to click the link to update their calendars.  I'll get the script posted as quick as I can.
 
04.28.2008 at 10:02AM PDT, ID: 21455627
That's great - thank you very much.
 
04.28.2008 at 06:44PM PDT, ID: 21458961

Rank: Genius

Here's the code.  Follow these instructions to use it.

1.  Copy the .hol file to a shared location
2.  Launch Notepad
3.  Edit the .hol file.  Delete the holidays for all the countries except yours.  
4.  Save the .hol file
5.  Create a new file
6.  Copy the code below and paste it into Notepad
7.  Edit the code as needed.  I placed a comment line where things can/need to to change
8.  Save the file with a .vbs extension
9.  Place the .vbs file in a shared location

At this juncture you have to make a choice.  If you want this to process to run without any user interaction, then you'll either need to add the code to a login script or find some other means of launching it automatically.  If instead you don't mind minimal interaction, i.e. clikcing a link, then you can send everyone an email with a link to the file.  They click the link, and the script runs adding the holidays to their calendar.  

Two warnings.  First, the script does not remove or update it existing holidays.  Two, if a given user runs the script more than once, then they will end up with multiple copies of the same holiday.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
Dim olkApp, olkCalendar, olkEvent, objFSO, objFile, arrItem, strFilename
'Change the file name and path on the following line as needed.
strFilename = "C:\eeTesting\Outlook.hol"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile(strFilename)
Set olkApp = CreateObject("Outlook.Application")
Set olkCalendar = olkApp.GetNamespace("MAPI").GetDefaultFolder(9)
Do While Not objFile.AtEndOfStream
    arrItem = Split(objFile.ReadLine, ",")
    Set olkEvent = olkApp.CreateItem(1)
    olkEvent.Subject = arrItem(0)
    olkEvent.Start = arrItem(1)
    olkEvent.AllDayEvent = True
    olkEvent.ReminderSet = False
    olkEvent.Display
Loop
Set olkEvent = Nothing
Set olkCalendar = Nothing
Set olkApp = Nothing
objFile.Close
Set objFile = Nothing
Set objFSO = Nothing
WScript.Echo "Holidays Added"
Open in New Window
 
04.29.2008 at 02:02AM PDT, ID: 21460566
Thanks BlueDevilFan,

I have tried that script but am getting the error:

Line: 12
Char: 5
Error: Subscript out of range: '[number: 1]'
Code: 800A0009

Any ideas?

Thanks
 
04.29.2008 at 03:24AM PDT, ID: 21460897

Rank: Genius

When you edited the .hol file, did you remove the line with your country name, e.g. [United Kingdom] 77?
 
04.29.2008 at 03:37AM PDT, ID: 21460949
No, I hadn't.  Now I have I receive the error:

Line: 12
Char: 5
Error: Type Mismatch: Unable to coerce parameter value. Outlook cannot translate your string
Code: 80020005
 
05.02.2008 at 12:52PM PDT, ID: 21489552

Rank: Genius

Can you post a few lines of the .hol file so I can see if they're laid out like I think they are?
 
05.06.2008 at 01:16AM PDT, ID: 21505542
Battle of the Boyne (N. Ireland),2006/7/12
Battle of the Boyne (N. Ireland),2007/7/12
Battle of the Boyne (N. Ireland),2008/7/14
Battle of the Boyne (N. Ireland),2009/7/13
Battle of the Boyne (N. Ireland),2010/7/12
Battle of the Boyne (N. Ireland),2011/7/12
Battle of the Boyne (N. Ireland),2012/7/12
Boxing Day,2006/12/26
Boxing Day,2007/12/26
Boxing Day,2008/12/26
Boxing Day,2009/12/26
Boxing Day,2010/12/26
Boxing Day,2011/12/26
Boxing Day,2012/12/26
Christmas Day,2006/12/25
Christmas Day,2007/12/25
Christmas Day,2008/12/25
Christmas Day,2009/12/25
Christmas Day,2010/12/25
Christmas Day,2011/12/25
Christmas Day,2012/12/25
 
05.15.2008 at 02:42PM PDT, ID: 21578232

Rank: Genius

Sorry I'm so slow to answer.  The file looks fine.  The error message is saying that one of the lines does not have a comma separating the event from the date.  You'll need to look though the file and see if you can find that line and fix it.

You need to fix line 15 in the code I posted.  Change it to read

    olkEvent.Save

That's my fault.  When I was testing I just wanted to display the appointments not actually save them.  I forgot to change that line before posting.
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628