Baseball Heat Zone in Excel

garyalarson

New Member
Joined
Jan 3, 2009
Messages
3
Ok, I'm looking to create a grid that displays how well my hitters hit the ball based on the location of the pitch. (ex. Low/inside, they hit well...but up and away they hit very poorly). Is it possible to have some simple clicking of the cells to increase value of that field, then I can do simple conditional formatting to display intensity based on color.

Any help would be amazingly awesome! :)
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Right click the tab for the sheet you wish to use and choose 'view code' from the menu, then paste in the following:

Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    Target.Value = Target.Value + 1
    [A1].Select
End Sub

This will increment whatever cell you double click on by 1

The [A1].Select bit moves the selection away from the current cell (assuming the current cell isn't A1) so that you can repeatedly double click the same cell. If you need to use A1, change it for something else, but make sure it's a cell that's always visible onscreen.

Hope that helps.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,207,169
Messages
6,076,908
Members
446,239
Latest member
Home Nest

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top