Article ID: 197726
Article Last Modified on 11/23/2006
Sub CommandButton1_Click()
'This will only work on contacts in the CURRENT folder
Set CurFolder = Application.ActiveExplorer.CurrentFolder
If CurFolder.DefaultItemType = 2 Then
MsgBox "This process may take some time. You will be notified" & _
" when complete.", , "Contact Tools Message"
Set MyItems = CurFolder.Items
For i = 1 to MyItems.Count
Set MyItem = MyItems.Item(i)
If Left(MyItem.HomeFaxNumber,2) <> "+1" and _
MyItem.HomeFaxNumber <> "" Then
MyItem.HomeFaxNumber = "+1" & MyItem.HomeFaxNumber
End If
If Left(MyItem.BusinessFaxNumber,2) <> "+1" and _
MyItem.BusinessFaxNumber <> "" Then
MyItem.BusinessFaxNumber = "+1" & MyItem.BusinessFaxNumber
End If
If Left(MyItem.OtherFaxNumber,2) <> "+1" and _
MyItem.OtherFaxNumber <> "" Then
MyItem.OtherFaxNumber = "+1" & MyItem.OtherFaxNumber
End If
MyItem.Save
Next
MsgBox "Done!", 64, "Contact Tools Message"
Else
MsgBox "The current folder is not a Contact folder ", 64, & _
"Contact Tools Message"
End If
End Sub
Additional query words: OL2K OutSol OutSol2000
Keywords: kbhowto KB197726