Telephone fields in Outlook 2007

  • Thread starter Thread starter Marvin Buzz
  • Start date Start date
Status
Not open for further replies.
M

Marvin Buzz

I run Outlook 2007 on my local PC, no exchange server is involved. Using VB,

I want to look at all of the phone and fax fields of each contact. I can

find no doc re the field names that I can use in my VB program. Any help

would be appreciated.

Thanks.
 
Object Browser in VBA is your friend (Alt + F11).

Off the top of my head, the following will be usefuil: BusinessFaxNumber,

BusinessTelephoneNumber, CallbackTelephoneNumber, CarTelephoneNumber,

CompanyMainTelephoneNumber, Home2TelephoneNumber, HomeTelephoneNumber,

MobileTelephoneNumber, OtherFaxNumber, OtherTelephoneNumber,

RadioTelephoneNumber./

You can also look at a contact with OutlookSpy (url below, select a contact

and click the Item button)

Dmitry Streblechenko (MVP)

-

"Marvin Buzz" <MarvinBuzz> wrote in message

news:B6E5A9BB-514A-4069-AEE6-F79D310B8FB8@microsoft.com...
> I run Outlook 2007 on my local PC, no exchange server is involved. Using
> VB,
> I want to look at all of the phone and fax fields of each contact. I can
> find no doc re the field names that I can use in my VB program. Any help
> would be appreciated.

> Thanks.
 
Thank you. I have found those fields and they contain what I need. If my

contact item is named cont then I would reference an item as

cont.HomeTelephoneNumber for example. If I have a variable that has a value

of "HomeTelephoneNumber" how would I reference the field? cont.variablename

does not work.

"Dmitry Streblechenko" wrote:


> Object Browser in VBA is your friend (Alt + F11).
> Off the top of my head, the following will be usefuil: BusinessFaxNumber,
> BusinessTelephoneNumber, CallbackTelephoneNumber, CarTelephoneNumber,
> CompanyMainTelephoneNumber, Home2TelephoneNumber, HomeTelephoneNumber,
> MobileTelephoneNumber, OtherFaxNumber, OtherTelephoneNumber,
> RadioTelephoneNumber./

> You can also look at a contact with OutlookSpy (url below, select a contact
> and click the Item button)

> > Dmitry Streblechenko (MVP)
>

>

>

> -
> "Marvin Buzz" <MarvinBuzz> wrote in message
> news:B6E5A9BB-514A-4069-AEE6-F79D310B8FB8@microsoft.com...
> >I run Outlook 2007 on my local PC, no exchange server is involved. Using
> >VB,
> > I want to look at all of the phone and fax fields of each contact. I can
> > find no doc re the field names that I can use in my VB program. Any help
> > would be appreciated.
> > Thanks.


>
 
You have to specify the object property name, you can't use a variable for

that. You'd have to set up a set of if blocks or a case block and test the

value of your variable and then access the property by name depending on the

value of your variable.

"Marvin Buzz" <MarvinBuzz> wrote in message

news:9D003AA5-B8FA-4E53-8B88-372247062CEF@microsoft.com...
> Thank you. I have found those fields and they contain what I need. If my
> contact item is named cont then I would reference an item as
> cont.HomeTelephoneNumber for example. If I have a variable that has a
> value
> of "HomeTelephoneNumber" how would I reference the field?
> cont.variablename
> does not work.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
D telephone formatting Contacts Using Outlook 2
A Need method to rapidly correct telephone contact telephone number formatting Using Outlook 1
A How do I get Outlook to stop adding a "+1" in front of a telephone number that has an extension. Using Outlook 13
Q Smart Tags - Telephone Number recognizing the contact information Outlook VBA and Custom Forms 3
C View doesn't refresh (fields or formatting) Using Outlook 1
M Accessing ALL Outlook contact fields Outlook VBA and Custom Forms 3
Z Import Tasks from Access Using VBA including User Defined Fields Outlook VBA and Custom Forms 0
J Read Outlook Form fields Outlook VBA and Custom Forms 3
G Other users can't see P.2 with custom fields in Form Outlook VBA and Custom Forms 0
S Reference Custom Fields with VBA Outlook VBA and Custom Forms 2
J Outlook 2013 Change color of text in data fields of contacts in Outlook 2013? Using Outlook 10
S User Defined Fields adding new value (2) Using Outlook 0
M vCard does not have user-defined fields from my custom contact form (365) Using Outlook 1
T Outlook 2010 Correct way to map multiple contact fields Using Outlook 4
F Appointment Show All Fields Using Outlook 1
F MAPI, User Defined Fields and perspective after 20 years Outlook VBA and Custom Forms 0
B Outlook Business Contact Manager with SQL to Excel, User Defined Fields in BCM don't sync in SQL. Can I use VBA code to copy 1 field to another? BCM (Business Contact Manager) 0
E To convert imported data to custom fields in Task list Outlook VBA and Custom Forms 1
cimbian street address fields contain 0A0D Outlook VBA and Custom Forms 2
S Custom user fields in received messages Outlook VBA and Custom Forms 1
J Backup .OST - Custom Contact Forms, Defined Fields, Notes Using Outlook 1
P Outlook custom fields "events" Using Outlook 0
J Add Fillable Fields to Existing Template Outlook VBA and Custom Forms 1
B Customize contact record phone fields Using Outlook 2
G Addition of 2 fields based on checkboc true or false Outlook VBA and Custom Forms 2
M Multiple User Defined Fields that can be added, changed, updated using VBA and user form Outlook VBA and Custom Forms 0
R User Defined Fields adding new value Using Outlook 3
S VBA with User Defined fields Outlook VBA and Custom Forms 9
Diane Poremsky Add Attachments and Set Email Fields During a Mail Merge Using Outlook 0
O VBA to extract email (fields and body) to Excel Outlook VBA and Custom Forms 14
H How to export *all* fields from Outlook Using Outlook 2
L Change the displayed fields in calendar view Using Outlook 1
N Export Outlook custom forms fields to excel Outlook VBA and Custom Forms 1
M Recurrence and custom fields Outlook VBA and Custom Forms 0
Diane Poremsky Hiding Global Address Book Fields Using Outlook 0
M Map Outlook user defined fields onto a Sharepoint list ??? Outlook VBA and Custom Forms 1
L Copy email body fields to excel Using Outlook 0
Diane Poremsky Add attachments and set email fields during a mail merge to email Using Outlook 0
H User designed fields not usable in contact folder views Using Outlook 0
L Outlook 2007 Search All Fields in Contacts Using Outlook 1
N How to retrieve user defined fields values to bcm form. Using Outlook 2
N How to disable user defined fields in BCM forms Using Outlook 2
M Adding fields to Task in Outlook Home and Business 2010 Outlook VBA and Custom Forms 7
W Meeting printing background fields Using Outlook 0
N Outlook 2013 vs Outlook.com Email Address fields Using Outlook.com accounts in Outlook 1
S Fields in BCM are overlapping BCM (Business Contact Manager) 2
U Cannot access fields at bottom of Outlook 2013 Contact Rec. Using Outlook 1
C Outlook Custom Contact Form Attach Files in new notes fields Outlook VBA and Custom Forms 3
K User Defined Fields in Outlook 2010 Using Outlook 2
S Custom Outlook Form 2013 Displaying fields incorrectly Outlook VBA and Custom Forms 1

Similar threads

Back
Top