|
-
Oct 22nd, 2002, 03:20 AM
#1
Thread Starter
Hyperactive Member
**SORTED** MAPIMessages.Show
Gang,
If you do a MAPIMessages.Show and get your address book, when you select a name and perhaps click it into the 'To' field, it doesn't go straight into the message.
Does anyone know if the selected or clicked name is actually put somewhere as eg a variable, and if so where?
Last edited by Jim Brown; Oct 23rd, 2002 at 03:30 AM.
.
-
Oct 22nd, 2002, 06:25 AM
#2
Thread Starter
Hyperactive Member
-
Oct 22nd, 2002, 06:30 AM
#3
Frenzied Member
maybe they are stored in one of the following propertys
VB Code:
MAPIMessages.RecipDisplayName
MAPIMessages.RecipAddress
Do you know by any chance how I can retrieve the address list through code ??
Code:
If Question = Incomplete Then
AnswerNextOne
Else
ReplyIfKnown
End If
cu Swatty
-
Oct 23rd, 2002, 03:33 AM
#4
Thread Starter
Hyperactive Member
That's what I thought Swatty! And it is the case in fact!
But what I was doing wrong was doing the .Show before the .Compose so there was no compose buffer operational when I clicked a name. Putting the .Compose first did the trick.
And no, I've nfc how to access the address list directly. That's actually what I would have preferred in this case anyway.
-
Oct 23rd, 2002, 05:07 AM
#5
Frenzied Member
Outlook (NOT Outlook Express) address lists should be available as:
VB Code:
Set myOLapp = CreateObject("Outlook.Application")
Set mynamespace = myOLapp.GetNameSpace("MAPI")
Set myaddresslist = mynamespace.AddressLists("Personal Address Book")
'Set myAddressList = myNameSpace.AddressLists("Global Address List")
Set myAddressEntries = myaddresslist.AddressEntries
MsgBox "There are this many: " & myAddressEntries.Count
MsgBox "The first address is: " myAddressEntries(1).Address
Set myAddressEntries = Nothing
Set myaddresslist = Nothing
Set mynamespace = Nothing
Set myOLapp = Nothing
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|