vba-cells-paint Simple excel cells painting using for loop Instruction Activate developer panel (File - Options - Customize Ribbon - Developer) Open VBA Editor by pressing corresponding button Create new module (Insert - Module) Paste code Run Macro on Excel Sheet