VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 495
Left = 1440
TabIndex = 0
Top = 840
Width = 1935
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim outA As Object
Dim ns As NameSpace
Dim AL As AddressList
Dim AE As AddressEntry
Dim AES As AddressEntriesPrivate Sub Command1_Click()
Set outA = CreateObject("Outlook.Application")
Set ns = outA.GetNamespace("MAPI")
Set AL = ns.AddressLists("联系人")
Set AES = AL.AddressEntries
Set AE = AES(1)
Debug.Print AE.Address
Debug.Print AE.Name
Set outA = Nothing
End Sub
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 495
Left = 1440
TabIndex = 0
Top = 840
Width = 1935
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim outA As Object
Dim ns As NameSpace
Dim AL As AddressList
Dim AE As AddressEntry
Dim AES As AddressEntriesPrivate Sub Command1_Click()
Set outA = CreateObject("Outlook.Application")
Set ns = outA.GetNamespace("MAPI")
Set AL = ns.AddressLists("联系人")
Set AES = AL.AddressEntries
Set AE = AES(1)
Debug.Print AE.Address
Debug.Print AE.Name
Set outA = Nothing
End Sub
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货