Maybe this is better done with VBA?