show this address list first

Status
Not open for further replies.
G

Goldy1234

I would like to be able to set a certain address list (a list that exists

under the Outlook Address Book) to be the first list shown in the Outlook

Address Book and when composing messages etc.

Can you give me some sample of code?!
 
D

Dmitry Streblechenko

On the Extended MAPI level (C++ or Delphi only), you would need to call

IAddrBook.SetDefaultDir().

<plug> Redemption (any programming language, URL below) would let you do

that using RDOAddressBook.DefaultAddressList or RDOAddressList.Default

properties </plug

Dmitry Streblechenko (MVP)

-

"Goldy1234" <Goldy1234> wrote in message

news:3A81F41E-552C-48E3-BC13-1359F6DF97A6@microsoft.com...
> I would like to be able to set a certain address list (a list that exists
> under the Outlook Address Book) to be the first list shown in the Outlook
> Address Book and when composing messages etc.

> Can you give me some sample of code?!
 
G

Goldy1234

I'm writing this code in outlook 2003 macro editor (visual basic 6.5). It's

theres a way to do it?
 
G

Goldy1234

OK, I figure it out, but I've got one problem:

in the fild Session\AddressBook\DefaultAddressList\AddressLists there is a

error <Error in IABContainer.GetHierarchyTable: MAPI_E_UNKNOWN_FLAGS Error:

An unknown flag was passed into a method.
because of that I can't select adresslist

sample of my code

Set Session = CreateObject("Redemption.RDOSession")

Session.MAPIOBJECT = Application.Session.MAPIOBJECT

Set AddrList = Session.AddressBook.AddressLists.Item("Users")

Session.AddressBook.DefaultAddressList = AddrList

"Goldy1234" wrote:



> I'm writing this code in outlook 2003 macro editor (visual basic 6.5). It's
> theres a way to do it?
 
D

Dmitry Streblechenko

What version of Outlook do you have on that machine?

Dmitry Streblechenko (MVP)

-

"Goldy1234" <Goldy1234> wrote in message

news:6816144C-C2C4-4FC7-850F-F698119E1597@microsoft.com...
> OK, I figure it out, but I've got one problem:

> in the fild Session\AddressBook\DefaultAddressList\AddressLists there is a
> error <Error in IABContainer.GetHierarchyTable: MAPI_E_UNKNOWN_FLAGS
> Error:
> An unknown flag was passed into a method.
> because of that I can't select adresslist

> sample of my code

> Set Session = CreateObject("Redemption.RDOSession")
> Session.MAPIOBJECT = Application.Session.MAPIOBJECT
> Set AddrList = Session.AddressBook.AddressLists.Item("Users")
> Session.AddressBook.DefaultAddressList = AddrList

> "Goldy1234" wrote:
>
>

>> I'm writing this code in outlook 2003 macro editor (visual basic 6.5).
> > It's
> > theres a way to do it?
 
D

Dmitry Streblechenko

Send an e-mail to my private e-mail address, I'll send you a debug version

of the dll tha twill create a debug log.

Dmitry Streblechenko (MVP)

-

"Goldy1234" <Goldy1234> wrote in message

news:FE1635C2-0B82-42CB-B76E-AF80E7B797FB@microsoft.com...
> Microsoft Office Outlook 2003 (11.8217.8221) SP3
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
C Outlook 2016 doesn't show contacts in address book Using Outlook 2
H How to show recipient email address? Using Outlook 0
Diane Poremsky Make the Address Book show only e-mail addresses, not fax numbers New Slipstick.com Articles 0
C iCloud addresses don't show up in "Address Book" or "To:" Using Outlook 5
U Subdirectories in people don't show up in the address book Using Outlook 1
C Exchange 2010 / Emails received show with display name and not email address Using Outlook 2
D Show this folder as an e-mail Address Book is enabled but I want to disable Using Outlook 2
I Outlook 2013 - address book showing FAX numbers - How to only show email? Using Outlook 4
D Outlook 2007 contacts do not show up in address book - 97-2003 pst file Using Outlook 0
K Outlook insert clip art, no results found...address book contacts only show up Using Outlook 5
williamlambton Changing 'To' field in message lists to show SMTP address only. Using Outlook 2
R Address book to show contacts with no email address or fax numbers Outlook VBA and Custom Forms 2
S Visual indicator of a certain property or to show a macro toggle Outlook VBA and Custom Forms 2
Horsepower Contacts added from iPhone don't show up in Outlook Using Outlook 2
C All Gmails don't show in Outlook 2019 Using Outlook 2
C How to use VBA to show only items x days old or more Outlook VBA and Custom Forms 1
L Option to Show Cancelled Appointments Using Outlook 0
B How to show concatenated categories in list task view? Using Outlook 2
M Outlook .com group does not show up in Outlook for office 365 home Using Outlook 3
F Appointment Show All Fields Using Outlook 1
G Calendar View in Outlook Office 365 - Doesn't show enough hours, and the 30/60 min choice isn't the solution Using Outlook 4
N How to disable shortcuts for Pilcrow in Outlook (Show or hide paragraph marks) Using Outlook 0
V Outlook Macro to show Flagged messages Outlook VBA and Custom Forms 2
F How to show assigned tasks under certain mailbox? Using Outlook 4
witzker social connector 2010 does not show all emails to or from contact Using Outlook 3
witzker social connector 2010 does not show all emails to or from contact New Slipstick.com Articles 0
S Outlook.com birthdays show up 1 day late on iPhone contacts list Using Outlook.com accounts in Outlook 27
A Outlook 2016 Will Not Show Any Data In the People Pane Using Outlook 17
Rupert Dragwater Email flag does not show up in Outlook2013 Using Outlook 13
S Show Total Number Of Items Not Displaying Using Outlook 9
Z Tasks from some users show up as emails Using Outlook 4
Caio "From" field doesn't show extra email addresses in Outlook 2016. Using Outlook.com accounts in Outlook 6
O Worksheet doesn't show on jumplist Using Outlook 1
J Outlook 2013 when clicking To in a new email show Company names Using Outlook 0
K Daily task list > show tasks on the exact due date and not on the "current date" Using Outlook 1
Rupert Dragwater Some mailboxes show deleted items as not read Using Outlook 5
C Discovery search does not show autoforwarded messages Exchange Server Administration 1
Thorsten show the correct calendar on start Outlook VBA and Custom Forms 5
M Marco doesn't show up when using Alt-F8 Outlook VBA and Custom Forms 2
I Windows 10 - .msg files on disk show Explorer popup error Using Outlook 5
Phillip Show mail items in folder macro Outlook VBA and Custom Forms 2
H Is it possible to create a view that only show the first task in a list? Using Outlook 1
G Outlook does not show new appointments in To-Do-Bar Using Outlook 0
L How to show Delivered-To field in Inbox Using Outlook 1
T Desktop alerts show but no emails found Using Outlook 1
oliv- How to select an mailitem in explorer with "show as conversation" Outlook VBA and Custom Forms 8
N To do bar - show more than 30 days of appointments Using Outlook 0
V move emails to windows folder and show sender details Using Outlook 7
M No Show Group on ribbon Using Outlook 8
J Outlook Rules not show Master Category List Using Outlook.com accounts in Outlook 4

Similar threads

Top