ASIC/FPGA Design and Verification Out Source Services
A visual basic script to save an entire sub folder to text.
- This page shows how create a macro for outlook. It uses visual basic.
- Again I wanted the mails in text format, rather the usual outlook backup. So this macro, per a given hardcoded subfolder and output location in the disk, saves all mails in a folder to the disk in text format.
- The MACRO is simple and when I have time, it will get the disk location and folder name from a nice GUI window.
- The name of each mail, which is stored, contains a prefix, also currently hard coded, and running index number.
ml.SaveAs str_file & "SUBFL_" & ix & ".txt", olTXT
- The sub folder is accessed by
Dim ns As NameSpace
Dim Inbox As MAPIFolder
Dim SubFolder As MAPIFolder
Set ns = GetNamespace("MAPI")
Set Inbox = ns.GetDefaultFolder(olFolderInbox)
Set SubFolder = Inbox.Folders("MUX")
- The script is available at:
visual basic for the MACRO.
|