It's very hard to help you figure you where you're going wrong unless you
share the code you've written and indicate where you have encountered
problems.
You might compare this with what you already have:
On Error Resume Next
Set objFolder = Application.session.GetDefaultFolder(olFolderContacts)
If Not objFolder Is Nothing Then
Set objItems = objFolder.Items
For Each objItem In objItems
' make sure you have a Contact item
If objItem.Class = olContact Then
Set objContact = objItem
With objContact
> MobileTelephoneNumber = _
"+92 " & objContact.MobileTelephoneNumber
> BusinessTelephoneNumber = _
"+92 " & objContact.MobileTelephoneNumber
> Save
Next
End If
End If
Sue Mosher
"Faraz A. Qureshi" <FarazAQureshi> wrote in
message news:F7BF3816-1B3F-4278-B444-7A7037156075@microsoft.com...
> Sorry Sue,
> Tried my level best but can't achieve/develop the required code. Can you
> simply devise a code to change or add country code "+92" to all the
> existing
> contacts' mobile/home office numbers?
> > ,
> Faraz
> "Sue Mosher [MVP]" wrote:
>
> > Between the code samples listed at
> > http://www.outlookcode.com/article.aspx?ID=23 and the object browser (F2
> > in
> > VBA) to give you the names of fields, you should have everything you need
> > to
> > put this together to meet your specific requirements.
>
>> "Faraz A. Qureshi" <FarazAQureshi> wrote in
> > message news:58DE121A-C3DF-4EE9-B3D0-9C998EC75002@microsoft.com...
> > >I don't have any. In fact, that is what I am looking for!
> > > > > > Do check "Yes" if this post is helpful,
> > > ,
> >> > Faraz
> >>> > "Sue Mosher [MVP]" wrote:
> >> >> Please show the code you're using the set the value of the ContactItem
> > >> phone
> > >> number properties.
> > >
>> >> "Faraz A. Qureshi" <FarazAQureshi> wrote in
> > >> message news:432CEB36-750D-4570-ADBE-0D6D35F23918@microsoft.com...
> > >> > Upon transfer of my contacts from a cell to the Outlook contacts I
> > >> > have
> > >> > found
> > >> > that the numbers are not being displayed in full and the country
> > >> > code
> > >> > is
> > >> > missing.
> > >>> >> > Any idea/macro how to have all the contact numbers have a country
> > >> > code
> > >> > "+92"
> > >> > (Pakistan) be inserted in all in a single go?
> > >>> >> > Thanx in advance.
> > >> > > > >> > ,
> > >>> >> > Faraz
> > >
>> >
>> >>
>
>
>>