Can you please tell me how to write the macro?