Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel - Tally routine

Status
Not open for further replies.

BobJacksonNCI

Technical User
Mar 11, 2003
725
US
I need a macro to help me with a tally task.

I want to react to a keystroke in a specific cell and
add to a counter in another cell based on the
keystroke entered.
For example:
A1 = the target cell.

If 1 is typed, add 1 to C1
If 2 is typed, add 1 to D1
etc

Freeze selection to A1 so I can zip through a bunch of response cards without lifting my right hand from the number pad.

Would someone help, please?
Bob
 
Just did a search and found thread707-773553

But that suggestion uses a mouse click whereas I want to enter a response number and increment the appropriate cell based on the number entered. Shouldn't be that difficult, but my brain is a bit burned out.

Once I understand the code, please point me in the direction of incorporating the code in a worksheet.

Thanks in advance,
Bob
 


Hi,

This cannot be done with native Excel functionality.

It however, can be done with VBA code using Worksheet Events. Please post this request in VBA Visual Basic for Applications (Microsoft) Forum707.

Skip,

[glasses] [red]Be Advised![/red]
The band of elderly oriental musicians, known as Ground Cover, is, in reality...
Asian Jasmine![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top