Developer, Former MVP, now at Microsoft - Best of 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
static void Main(string[] args){ OutlookSession os = new OutlookSession(); ContactCollection cc = os.Contacts.Items; for (int j = 0; j < cc.Count; j++){ Contact c = cc[j]; string s = c.FileAs; int i = s.IndexOf(','); if (i > 0){ string s1 = s.Substring(0, i); string s2 = s.Substring(i + 2, s.Length - i - 2); c.FileAs = s2 + " " + s1; c.Update(); } } cc.Dispose(); os.Dispose();}