Thread: [Solved] Vault lock mail copy
View Single Post
 
Old 08-19-2013, 09:57 AM
msperry msperry is offline Windows 7 64bit Office 2010 64bit
Competent Performer
 
Join Date: Jul 2011
Location: Jacksonville, Florida, US
Posts: 141
msperry is on a distinguished road
Default

Hi,

The problem is that the Outlook Application object cannot be initialized with a New statement, you need to grab the copy of Outlook that is already running like so:

Dim olApp As Outlook.Application
olApp = GetObject(, "Outlook.Application")

BTW, you might be better off to check out the Outlook programmers forum at http://social.msdn.microsoft.com/For...rum=outlookdev, or possibly http://www.outlookcode.com/.

Good luck!

- Mike
Reply With Quote