Cannot open extracted .msg files from outlook

Status
Not open for further replies.

felinluv

New Member
Outlook version
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
 
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
T Cannot open .pst file Using Outlook 2
T Outlook 2021 Cannot open attachments Outlook DeskTop 2021 Using Outlook 0
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
S Cannot start Microsoft Office Outlook. Cannot open the Outlook window. The set of folders cannot be Using Outlook 3
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
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
E "The operation cannot be performed because the message has been changed" Using Outlook 3
D Outlook 365 Outlook Message "Cannot be sent because the message has changed" Using Outlook 0
P Cannot understand how to use Favorites Using Outlook 4
U When opening shared Calendar "The set of folders cannot be opened" Using Outlook 0
J Cannot edit a calendar event received as an invitation Using Outlook 2
humility36 Cannot move emails to archive - 440 error Outlook VBA and Custom Forms 1
L I Cannot Sign Into My Outlook Account? Outlook VBA and Custom Forms 0
CWM330 This rule has a condition that the server cannot process? Using Outlook 1
U Outlook on the iPhone cannot approve filtered Emails Using Outlook 0
Horsepower Cannot delete gmail in iPhone Outlook outbox Using Outlook 1
K Daily Task List Minimized Cannot Display Using Outlook 5
O The linked image cannot be displayed Using Outlook 2
C "The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file location" Using Outlook 1
B IMAP server rejects sent email - cannot deliver messages Using Outlook 2
S Cannot print Contacts Using Outlook 7
J VBA Cannot programmatically input or change Value for User Defined field Using Outlook 1
T Outlook 2010 Cannot edit Calendar entries in OL 2010. Using Outlook 1
O Cannot expand the folder. The set of folders cannot be opened. You do not have permission to log on. Using Outlook 1
N Item cannot be saved because it was modified by another user or window, and, Item could not be moved... Using Outlook 0
D Cannot populate certain UserProperties in Outlook from Excel Outlook VBA and Custom Forms 2
D Outlook 2016 64bit, Cannot Save in 'HTML', format Using Outlook 1
D cannot view emails in View pane (in the right pane), I only see one line or nothing Using Outlook 21
M Cannot read the calendar Using Outlook 9
T The Linked Image Cannot Be Displayed in Outlook Using Outlook 7
D Outlook 2016 Outlook Error Msg "The operation cannot be performed ..." How to Stop it Using Outlook 4
S Custom Field Cannot Be Displayed In Views Outlook VBA and Custom Forms 2

Similar threads

Back
Top