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
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
D Outlook 2016 Outlook Error Msg "The operation cannot be performed ..." How to Stop it Using Outlook 3
S Custom Field Cannot Be Displayed In Views Outlook VBA and Custom Forms 2
G Cannot Move Autocomplete File to New Computer Using Outlook 15
rubaboo The vew cannot be found Outlook VBA and Custom Forms 0
A Cannot copy this folder because it may contain private items Using Outlook 0
David in Mississippi New (Feb 2020) install of Outlook 365 - Cannot specify PST for different accounts Using Outlook 0
Marc2019 Need help please! Cannot Setup my outlook email account on my Mac Outlook 2011 Using Outlook.com accounts in Outlook 2
noshairwan Registry cannot be found, Outlook Security Using Outlook 2
Marc2019 Cannot input Vietnamese Characters on my MSOutlook 2016 in Windows 7 Using Outlook 0
T Cannot remove needless PST Using Outlook 1
Marc2019 Cannot setup Outlook Account on Mac Os 10.6.8 Using Outlook 3
N pst files are recreating automaticaly and cannot be deleted Using Outlook 5
Mark Foley Cannot enable add-in in outlook 2010 Using Outlook 0
T "cannot find the calendar folder for this item" - calendar items stuck in outbox Using Outlook 0
A Created a new user account and the local account cannot see email Using Outlook 3
iwshim outlook 2013 - I cannot see the "Manage Add-ins" Using Outlook 2
T Cannot connect to main BT email account, sub accts okay Using Outlook 0
O The page that you are trying to access cannot be loaded. Using Outlook 0
M Daily Task List Minimized Cannot Display Using Outlook 2
geofferyh Cannot get Macro to SAVE more than one message attachment??? Outlook VBA and Custom Forms 5
DariTrevino MIcrosoft Outlook PST file cannot repair Using Outlook 1
B One email cannot be sent or received (but leaves outbox!) Using Outlook 1
C Outlook 2016 cannot delete, email showing in root Exchange Server Administration 5
S Outlook.com cannot edit some contacts Using Outlook.com accounts in Outlook 5
B Search: Cannot find which Folder Contains a Message Using Outlook 3
C Outlook - cannot save subject line changes Using Outlook 2
M cannot change delivery folders with IMAP accounts Using Outlook 0
S Appointment-Cannot set Categories because ConversationID is not set Outlook VBA and Custom Forms 1

Similar threads

Top