G
Guest
Hi,
I use OL2003 and have several pst files for different accounts, subjects etc.
I need a code which strips the attachment from incoming emails which are
first moved (through OL rules) to certain pst file. So, I need to refer to a
subfolder from other pst file than the default one.
Dim oApp As Application
Dim oNS As NameSpace
Dim atm As Attachment
Dim sub_subfolder, subfolder, inbox As MAPIFolder
Dim olMail As Outlook.MailItem
Set oApp = New Outlook.Application
Set oNS = oApp.GetNamespace("MAPI")
Set ofolder = oNS.GetDefaultFolder(olFolderInbox)
Set sub_subfolder = ofolder.Folders("xxxx").Folders("yyyy")
This is the begining of the code.
Any help please?
Thanks and regards,
I use OL2003 and have several pst files for different accounts, subjects etc.
I need a code which strips the attachment from incoming emails which are
first moved (through OL rules) to certain pst file. So, I need to refer to a
subfolder from other pst file than the default one.
Dim oApp As Application
Dim oNS As NameSpace
Dim atm As Attachment
Dim sub_subfolder, subfolder, inbox As MAPIFolder
Dim olMail As Outlook.MailItem
Set oApp = New Outlook.Application
Set oNS = oApp.GetNamespace("MAPI")
Set ofolder = oNS.GetDefaultFolder(olFolderInbox)
Set sub_subfolder = ofolder.Folders("xxxx").Folders("yyyy")
This is the begining of the code.
Any help please?
Thanks and regards,