Outlook 2000: globally change the "file as" order of all contacts

  • Thread starter Thread starter Guest
  • Start date Start date
Here's the entire case, with line numbers.

69 Case "Last, First (Company)"
70 MyItem.FileAs = MyItem.LastNameAndFirstName
71 If MyItem.CompanyName <> "" Then
72 If MyItem.FileAs <> "" Then
73 MyItem.FileAs = MyItem.FileAs & " (" & _ MyItem.CompanyName
& ")"
74 Else
75 MyItem.FileAs = MyItem.FileAs & _ MyItem.CompanyName
76 End If
77 End If
 
That line has an underscore, the VBA continuation character, in the middle
of the line, not at the end. Either of these would be correct:

MyItem.FileAs = MyItem.FileAs & " (" & MyItem.CompanyName & ")"

MyItem.FileAs = MyItem.FileAs & " (" & _
MyItem.CompanyName & ")"

You'll need to fix a similar problem with statement 75.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
That was it. Thanks so much!
Shannon

Sue Mosher said:
That line has an underscore, the VBA continuation character, in the middle
of the line, not at the end. Either of these would be correct:

MyItem.FileAs = MyItem.FileAs & " (" & MyItem.CompanyName & ")"

MyItem.FileAs = MyItem.FileAs & " (" & _
MyItem.CompanyName & ")"

You'll need to fix a similar problem with statement 75.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top