(Solved) – Office – VBA – Contact FileAs name

  • by
(solved)-–-office-–-vba-–-contact-fileas-name

I used the below document to fix my existing contact’s FileAs entry, but it didn’t work for contacts that were just company names.

https://docs.microsoft.com/en-us/office/vba/outlook/concepts/address-book/programmatically-change-the-display-format-for-all-contacts

Because the Firstname and Lastname fields were blank, it made the FileAs entry blank(” ” ” ” ” “).

How can I adjust the code to run a for loop that looks for the blank FileAs field and sets the CompanyName field as the FileAs field?

Leave a Reply

Your email address will not be published. Required fields are marked *