Just cleaned it up a bit, though I didn't test it as I don't have Office 2007 installed on my system. If this will be a login or startup script, you may want to consider adding some sort of error handling and logging to help troubleshoot and avoid any popups that could cause the script to stall...