make a macro for it and convert it to a module and then you will have the code. It is easy to do with a macro.