Please help me to write the code for this Excel-VBA problem?

Printable View