J
Joseph McGuire
I got a lot of help last month (special thanks to G. Mayor) setting up
Macrobuttons with a Macro to pull certain information, including a Contact's
phone number, from OL and insert it in my Word document. Double-clicking on
the button gets me the Contact's name and his/her phone number and puts it
in a Word document that I use as a log to account for phone charges. This
has worked quite well until I hit a glitch. The macro is set to retrieve
OFFICE_TELEPHONE_NUMBER. Most of my contacts have a Business phone, as the
field seems to be called in OL, which I use for their direct line. This
appears to be what the macro is retrieving. For others I have their phone
number as Company Phone since I don't know or they do not have a direct
line. For such Contacts, my macro returns the Contact's name but a blank
for the number. Then I have to cut and paste the number into my log, which
is why I wanted the Macro/Macrobutton in the first place. Is there any
reasonable way short of a vba nightmare to either set some priorities (e.g.,
if there is no Business Number, look for Company Number?
Let's not even get into Contacts who also have mobile numbers, etc. The
combination of Business Phone and Company phone probably cover 95% of my
billable calls. I will be happy if this macro works for that 95% but I am
not going to kill myself to get from 95 to 100%!
Macrobuttons with a Macro to pull certain information, including a Contact's
phone number, from OL and insert it in my Word document. Double-clicking on
the button gets me the Contact's name and his/her phone number and puts it
in a Word document that I use as a log to account for phone charges. This
has worked quite well until I hit a glitch. The macro is set to retrieve
OFFICE_TELEPHONE_NUMBER. Most of my contacts have a Business phone, as the
field seems to be called in OL, which I use for their direct line. This
appears to be what the macro is retrieving. For others I have their phone
number as Company Phone since I don't know or they do not have a direct
line. For such Contacts, my macro returns the Contact's name but a blank
for the number. Then I have to cut and paste the number into my log, which
is why I wanted the Macro/Macrobutton in the first place. Is there any
reasonable way short of a vba nightmare to either set some priorities (e.g.,
if there is no Business Number, look for Company Number?
Let's not even get into Contacts who also have mobile numbers, etc. The
combination of Business Phone and Company phone probably cover 95% of my
billable calls. I will be happy if this macro works for that 95% but I am
not going to kill myself to get from 95 to 100%!