vegard_fv
08-14-2018, 01:13 AM
I have received 500 .msg-files/Outlook items stored in multiple folders. Each file is an export of a calendar entry in Outlook. I would like to fetch metadata from each file, and print it to a structured excel-sheet, with the columns calenderitem.text, .sender, .reciever and .date, etc.
This snippet seams to do what I'm looking for:
http://www.litigationsupporttipofthenight.com/single-post/2018/03/31/VBA-code-to-extract-metadata-from-msg-files
But I get an error message saying "Type mismatch" when the code reaches the line "Set msg = x.OpenSharedItem(Path + FileList(Row))". :crying:
When i debug.print the filearray in the code, it contains all the .msg-files, and both the variables path+filelist(row) returns correct file name. :doh:
Does anyone have a suggestion on what goes wrong, or any hints of how the job might be done?:think:
This snippet seams to do what I'm looking for:
http://www.litigationsupporttipofthenight.com/single-post/2018/03/31/VBA-code-to-extract-metadata-from-msg-files
But I get an error message saying "Type mismatch" when the code reaches the line "Set msg = x.OpenSharedItem(Path + FileList(Row))". :crying:
When i debug.print the filearray in the code, it contains all the .msg-files, and both the variables path+filelist(row) returns correct file name. :doh:
Does anyone have a suggestion on what goes wrong, or any hints of how the job might be done?:think: