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.
Similar threads
Thread starter Title 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
J Cannot open your default e-mail folder. The file "C\Users\Jim\AppData\Local\Microsoft\Outlook\Outlo Using Outlook 2
F Oulook 2010 (on exchange 2010): "Cannot open this item" after search in online archive on indexed ma Using Outlook 2
S Cannot Open Attachments Outlook 2010 Using Outlook 3
D Cannot open Hyperlink in outlook2010 Using Outlook 3
Y Cannot open the Public Folders aftering installing Security Updates 2288953 Using Outlook 5
A MS Outlook won't load... Error message>>> "Cannot open your default e-mail folder:" Using Outlook 4
S Cannot start Microsoft Office Outlook. Cannot open the Outlook window. The set of folders cannot be Using Outlook 3
G Cannot open, add, connect to PST files from Outlook Pro Plus 2010 RTM Using Outlook 12
P Cannot open your default e-mail folders. The information store could not be opened. Using Outlook 7
A BCM 2010. Cannot open this item. Error loading form. Some of neede BCM (Business Contact Manager) 3
T Cannot Start MS Office Outlook - Cannot open office window BCM (Business Contact Manager) 1
T Cannot open this item becasue another workstation has modified it. Using Outlook 4
P Cannot start Microsoft Office Outlook. Cannot open the Outlook window. The set of folders cannot be Using Outlook 12
D Microsoft Outlook cannot open Outlook VBA and Custom Forms 1
P Custom Task Cannot be open when assigned. Outlook VBA and Custom Forms 7
C I cannot open business projects but I can view them BCM (Business Contact Manager) 2
V I cannot open my outlook small business 2007 BCM (Business Contact Manager) 1
S Custom Field Cannot Be Displayed In Views Outlook VBA and Custom Forms 2

Similar threads

Top