Press the Visual Basic Editor button
.
If it is not present on your screen then go to Tools\Macro\Visual Basic Editor or
simply press Alt-F11.
In the Project window on the left double click on the
Sheet1(Sheet1)
. The cursor jumps into the right editor window. Enter the VBA code.