Extract multiple embedded MSG files from a Word document.
Posted on 2008-10-02
Hello all :)
Hope someone can help.
I have a Word document which is currently version 2003 but can be saved in 2007 (.docx). Within the document are around 900 .msg files which now need to be extracted into a folder. I've tried highlighting them all and copy/paste into a folder but all I get is a Scrap file. If I select each one and copy/paste then it saves correctly.
Obviously, manually selecting each one and copy/pasting will take ages. I've also tried saving the document as a .docx and renaming it to a ZIP file in-order to look at the contents. However, the embedded .msg files are showing as .bin files.
I'd guess that the only way to do this is to code some sort of macro which can highlight, copy, paste (to folder) and highlight next one and repeat.
Can anyone assist me further?
Please note: these .msg files are actually Outlook contact cards. When you double click them they do open correctly in Outlook as a contact card. Just in case this is important.
Many thanks in advance :)