ps, David, this statement:
Set O = New Outlook.Application
requires early binding, which means the correct version of the Outlook library must be referenced. If you're writing code to use in any version and want to use late binding instead, you can use
dim O as Object 'Outlook.Application...