A VBA Macro would be your best bet for doing this.