Cannot open extracted .msg files from outlook

Status
Not open for further replies.

felinluv

New Member
Outlook version
Outlook 2007
Email Account
Exchange Server 2007
Hello,

I got the following code from the web which extracts files from sharepoint and saves it as .msg extension t my local folder.
When try to open the saved file, I get the following error message:

"Cannot open file: c\users\xx\xx\xxx.msg The file may not exist, you may not have permission to open it, or it may be open in anothe program. Right-click the foler that contains the file, and the click properties to check your permission for the folder"

When I save the same file manually, the file opens...can someone please let me know why I cannot open saved .msg files?


Option Explicit
Private Declare Function URLDownloadToFile Lib "urlmon" Alias _
"URLDownloadToFileA" ( _
ByVal pCaller As Long, ByVal szURL As String, _
ByVal szFileName As String, _
ByVal dwReserved As Long, _
ByVal lpfnCB As Long) As Long

Sub DownloadFileFromWeb()
Dim i As Integer
Const strUrl As String = "http://moore/Moore Price Support 2/...9a133eae9}&SortField=Modified&SortDir=Desc/FW UPDATED Client Pricing Reminder - July 31 2014.msg"
Dim strSavePath As String
Dim returnValue As Long

strSavePath = "C:\Users\\Desktop\SharePoint\DATE.msg"
returnValue = URLDownloadToFile(0, strUrl, strSavePath, 0, 0)

End Sub

Thank You
 

A A Ron

New Member
Outlook version
Outlook 2013 32 bit
Email Account
IMAP
Have you found an answer to this question...I am having the same issue, and I cannot figure it out.
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
L Cannot open PST file for first session each day Using Outlook 6
S Outlook 2010 Cannot Open Attachments Using Outlook 14
O Cannot open or save calendar items Using Outlook 0
V Cannot start Outlook. Cannot open the Outlook window. Using Outlook 8
M Cannot start MS Office Outlook Cannot open the Outlook window Using Outlook 2
R Cannot open certain emails Using Outlook 3
P I am getting an error msg = cannot open file access denied Using Outlook 3
P Cannot open Options Menu Outlook 2007 and Cannot create a new profile Using Outlook 0
M Cannot open CALENDAR in outlook 2003 Using Outlook 2
A Cannot edit or open existing contact nor add new ones. BCM (Business Contact Manager) 1
S Cannot open any attachment from OWA Exchange Server Administration 2
B Outlook cannot open/mail applet not enough resources Using Outlook 5
D Cannot open Outlook 2011 Account Settings Using Outlook 2
E cannot start Microsoft Office Outlook. Cannot open the Outlook Window. Using Outlook 1
M Outlook 2007 "cannot open your default email folders.microsoft exchange is not available" on XP is n Using Outlook 1
N Re: outlook cannot open my default data file Using Outlook 1
P Error message of "Cannot open your default email-folders Errors have been detected in the File U:\Ou Using Outlook 2
R Outlook 2007 cannot open files to start program Using Outlook 1
H Exchange 2010 cannot open exchange management console Exchange Server Administration 5
P All of a sudden I cannot open the INBOX file. It asks me to close any application and restart. Done that several times. Nothing Using Outlook 1
J I Cannot open links on received e-mails, But I can open attachments Using Outlook 1
M Cannot display the folder. Outlook cannot open this item. The item may be damaged. __ Using Outlook 1
S Office 2007 - Cannot open .pst (you don't have appropriate permission to perform this operation) Using Outlook 1
G Outlook 2010: Cannot Open Item Error; and Operation Failed Error when replying!! Using Outlook 2
R Cannot Start Microsoft Outlook. Cannot Open the outlook window. Using Outlook 11
I I cannot open Microsoft Word attachments - Message: Works cannot open... Using Outlook 1
D Cannot open your default e-mail folders. The server is not available. Contact your adminstrator if t Using Outlook 3
D Outlook 2003 cannot open Word docs after Windows 7 upgrade from Vista. Using Outlook 2
L Cannot open Outlook 2010 Student, operating system Windows XP Using Outlook 6
A Cannot open Outlook window Using Outlook 1
T Cannot open hyperlinks inside e-mails... (outlook 2010) Using Outlook 3
M "Cannot start microsoft outlook. cannot open the outlook window. The set of folders cannot be opened Using Outlook 1
P cannot open default email folders errors in c:\users\officemax\appdata\local\microsoft\outlook\outlook.pst Using Outlook 1
M Cannot open Outlook 2007 receive several different error messages such as Outlook has not been insta Using Outlook 1
R 0x80004005 Cannot open file Microsoft Office 14 Alerts Using Outlook 3
E cannot open emails with attachments Using Outlook 1
L Cannot open link in email Using Outlook 1
B "Cannot open your default e-mail folders. Outlook cannot start because a data file to send and recei Using Outlook 1
J Cannot open your default e-mail folder. The file "C\Users\Jim\AppData\Local\Microsoft\Outlook\Outlo Using Outlook 2
R Get an error message "Cannot start Microsoft Office Outlook. Unable Unable to open the Outlook win Using Outlook 5
S Cannot reply, reply all or forward an open mail in Outlook 2007 Using Outlook 1
F Cannot open Outlook Using Outlook 1
F Oulook 2010 (on exchange 2010): "Cannot open this item" after search in online archive on indexed ma Using Outlook 2
R Cannot open sound drop down box Using Outlook 1
K Getting this error message--Cannot open Microsoft Outlook. Cannot open the Outlook window. The set of folders can not be opened. Using Outlook 1
S Cannot Open Attachments Outlook 2010 Using Outlook 3
B Outlook creates attachments other mailprograms cannot open Using Outlook 1
D ERROR: Cannot open Outlook Using Outlook 1
S Cannot open links in Outlook Using Outlook 1
C Upgraded version of Outlook cannot open previously viewable encrypted messages. Using Outlook 1
Similar threads


















































Top