Click the Developer tab, then click the Visual Basic button. Once the VBA Editor is open, type the code to change the color of the cell. Then click the Run button and select Run Sub/UserForm.