Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create folder in outlook automation
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01484646
Message ID:
01484668
Vues:
32
i did a search and found what i was looking for once i saw your 'add' since- my previous search 'create' turned up nothing. It's all in a word. This works very well now -- thanks for the help naomi - k
Local oOutlook,oNameSpace,oNewFolder
oOutlook=CREATEOBJECT('outlook.application')
oNameSpace=oOutlook.GetNamespace('mapi')
oNewFolder=oNameSpace.Folders(2).Folders.Add('myNewFolder')  && This will create a folder in the Personal folders' directory of Outlook. 
http://www.tek-tips.com/faqs.cfm?fid=3894

>>is there a way to create a new folder using outlook automation along the same lines as [move message] command below?
>>tnks
>>k
>>
>>
>>
>>=loMSG.Move(loNameSpace.Folders["Personal Folders"].Folders["InboxTemp"])
>>
>
>Translate VB code to VFP
>
>Dim Inbox as Outlook.Mapifolder
>Dim Subfolder as Outlook.Mapifolder
>
>Set Inbox=Applcation.Session.Getdefaultfolder(olFolderInbox)
>Set Subfolder=Inbox.Folders.Add("my first new folder")
>
>
>found at http://www.eggheadcafe.com/software/aspnet/34232096/creating-mulitple-subfolders.aspx
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform