Hi,
Am I right in thinking this is a big matrix which contains only dates?. In which case the simplest solution would be to add a userform and put 5 buttons on it. Set the background property of each button to the colour you want, and in the click event of the button add the code
Set the Modal property of the userform to False. This will allow you to move it about and still access the sheet cells. Add a 6th button which can be hidden outside the borders of the form and set the Cancel property to True, and in the click event put the code
Make the form as small as possible so that just the 5 buttons show, and in a Code module, add a procedure
and in the Excel application make this ShowMenu macro procedure the subject of a shortcut key - say CTRL-z
Now whenever CTRL-z is pressed the userform will float above the sheet, and clicking on any of the buttons will colour the active cell. The Esc key will dismiss the form.
HTH
Bookmarks