#181 ·
Brenda Lee2 said:Is it possible to do something like this in Microsoft Excel? Say I have the number "352" in a cell, and I want to hit a plus button to bump it up or a minus button to drop it down. If not exactly that, maybe something close?
If that number is sitting in cell A1, just copy this macro into that specific
Sheet
Code:
Sub plus() Application.EnableCancelKey = xlDisabled Application Application.ScreenUpdating = False range Range("A1") = Range("A1").Value + 1 end Sub Sub minus Sub minus() Application.EnableCancelKey = xlDisabled Application Application.ScreenUpdating = False range Range("A1") = Range("A1").Value - 1 end Sub
Then just toss two buttons on the sheet for the + and -
Check out the screenshots at the link—I even put a downloadable example here
