Jim
You could put code like this in the ThisWorkbook module (Alt-F11)
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.OnKey "a", ""
Application.OnKey "s", ""
Application.OnKey "d", ""
Application.OnKey "f", ""
End Sub
Private Sub Workbook_Open()
Application.OnKey "a", "AddOne"
Application.OnKey "s", "AddOne"
Application.OnKey "d", "AddOne"
Application.OnKey "f", "Addone"
End Sub
Then this in standard module
Sub AddOne()
Sheet1.Range("A1").Value = Sheet1.Range("a1").Value + 1
End Sub
--
{*filter*} Kusleika
MVP - Excel
Post all replies to the newsgroup.
Quote:
> I am only new to excel and not even sure if it is able to do what I am
> hoping.
> I want to allocate four keys and each time one of these keys is
> pressed I want the quanitity in a cell to increase by one.
> If this even possible or do I need to look elsewhere.
> Thanks
> Jim