Importing Contacts

R

Richard

Whenever I import a contact, no matter what it always displays as default
"Last, First". (even though I have mine set to First Last) I imported my
work contacts list now I have a mess with hundreds of contacts. I want them
displayed as "Company (Last ,First)" or "First Last" I was in another group
and was directed here
http://support.microsoft.com/default.aspx?scid=kb;en-us;291144
I did exactly as directed, twice I copied and pasted the code in but when I
open the form I get a "Script Error" Syntax error line1" when I close the
error my form opens, I click a button and nothing happens. what do I do, Is
there another way to change more than one at a time file as field?
 
R

Richard

Well, I figured out the code, the form works fine, now is there a way to
tweak it so I can have "Company (First Last) instead of the Company (Last,
First)?
 
S

Sue Mosher [MVP-Outlook]

If you want to change the FileAs property for imported contacts, you need to
be aware that FileAs is a little quirky. What you see in the contact item as
Full Name (Company) is actually stored as "Full Name" & vbCrLf &
"Company" -- with no parentheses in sight. See
http://www.outlookcode.com/threads.aspx?forumid=3&messageid=7833 for a
discussion and example of this issue.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
R

Richard

the parentheses I wrote is how I see it in the contacts File As drop down
menu. I am thinking there is no way for me to make the code work for- File
As; Company First Last because the original form has it as Company Last,
First?
is there a way to see the code of the original outlook Contacts form?
 
S

Sue Mosher [MVP-Outlook]

No, you can't see the internal workings of any Office program.

There's no reason you can't code FileAs to equal what you want, either in
code behind a custom form for new items or in import code. You just have to
keep in mind what I pointed out earlier -- that if you want it to work
right, you don't use parentheses but instead use a CR/LF between the two
elements that you want to separate.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top