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

S

Shannon

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
 
S

Sue Mosher [MVP-Outlook]

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
 
S

Shannon

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top