Create macro for input