码迷,mamicode.com
首页 > 其他好文 > 详细

新随笔测试(2018-12-30)

时间:2018-12-30 20:35:23      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:样式   contact   idt   技术分享   copyto   功能   alt   efault   ace   

申请博客功能,2018-12-30 正式开通。

测试一下新建博客(随笔)的功能。书写功能比CSDN顺畅好多!??一个

元旦将至,辞旧迎新。欢喜欢喜!!!

Sub CopyFolder()
    测试一下代码样式
    Dim myOlApp As New Outlook.Application
    Dim myNameSpace As Outlook.NameSpace
    Dim myInboxFolder As Outlook.Folder
    Dim myContactsFolder As Outlook.Folder
    Dim myNewFolder As Outlook.Folder
    Set myNameSpace = myOlApp.GetNamespace("MAPI")
    Set myInboxFolder = myNameSpace.GetDefaultFolder(olFolderInbox)
    Set myContactsFolder = myNameSpace.GetDefaultFolder(olFolderContacts)
    Set myNewFolder = myContactsFolder.CopyTo(myInboxFolder)
End Sub 

 

技术分享图片

 

 

Sub CopyFolder()
    ‘测试另一种代码模式
    Dim myOlApp As New Outlook.Application
    Dim myNameSpace As Outlook.NameSpace
    Dim myInboxFolder As Outlook.Folder
    Dim myContactsFolder As Outlook.Folder
    Dim myNewFolder As Outlook.Folder
    Set myNameSpace = myOlApp.GetNamespace("MAPI")
    Set myInboxFolder = myNameSpace.GetDefaultFolder(olFolderInbox)
    Set myContactsFolder = myNameSpace.GetDefaultFolder(olFolderContacts)
    Set myNewFolder = myContactsFolder.CopyTo(myInboxFolder)
End Sub 

 

新随笔测试(2018-12-30)

标签:样式   contact   idt   技术分享   copyto   功能   alt   efault   ace   

原文地址:https://www.cnblogs.com/viroax/p/10200259.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!