Wrote the macro to perform the transformation automatically