Right I have the code in place but it will only work first time out look is opened, unless I have a msgbox on the first line and, I cant work out how to make it work with out it, obviously the msgbox isn't code doing any thing but it must be setting focus or some thing, here is the code, any help appreciated thanks
Dim strID As String
Dim olNS As Outlook.NameSpace
Dim olMail As Outlook.MailItem
Dim objAtt As Outlook.Attachment
Dim objDestFolder As Object
msgbox("test") < < < with this it works every time
Set objDestFolder = olMail.Parent.Folders("-=Site Surveys=-")
strID = MyMail.EntryID
Set olNS = Application.GetNamespace("MAPI")
Set olMail = olNS.GetItemFromID(strID)
olMail.Move objDestFolder
Set olNS = Nothing
Set olMail = Nothing
Set objDestFolder = Nothing
Dim strID As String
Dim olNS As Outlook.NameSpace
Dim olMail As Outlook.MailItem
Dim objAtt As Outlook.Attachment
Dim objDestFolder As Object
msgbox("test") < < < with this it works every time
Set objDestFolder = olMail.Parent.Folders("-=Site Surveys=-")
strID = MyMail.EntryID
Set olNS = Application.GetNamespace("MAPI")
Set olMail = olNS.GetItemFromID(strID)
olMail.Move objDestFolder
Set olNS = Nothing
Set olMail = Nothing
Set objDestFolder = Nothing