Hello guys,
I want to save the message in Inbox folder as .msg file. I got the following warning:
"A program is trying to access e-mail addresses you have stored in Outlook. Do you want to allow this?
If this is unexpected, it may be a virus and you should choose "No". "
If I clicks no, the following error will occur:
"Run-time error '287':
Application-defined or object-defined error".
I use the following code:
On Error Resume Next
myItem.SaveAs New_Folder & "\" & fname & ".msg"
If Err = 287 Then
.........
End If
But it didn't work.
Your any help will be appreciated.
Thank you in advance!
I want to save the message in Inbox folder as .msg file. I got the following warning:
"A program is trying to access e-mail addresses you have stored in Outlook. Do you want to allow this?
If this is unexpected, it may be a virus and you should choose "No". "
If I clicks no, the following error will occur:
"Run-time error '287':
Application-defined or object-defined error".
I use the following code:
On Error Resume Next
myItem.SaveAs New_Folder & "\" & fname & ".msg"
If Err = 287 Then
.........
End If
But it didn't work.
Your any help will be appreciated.
Thank you in advance!