Adding points with an offset from the active cell

Enocai

New Member
Joined
Feb 7, 2015
Messages
3
I am trying to create a scoring sheet for a game we play at work. There are 4x different types of ways they get points and the only way I know to do this currently is to create 4x buttons for every row that add points to the appropriate column. If I can just get the base code I can make it work for all 4 buttons I will be setting macros on.

Ideal Summary:
If I have Cell A1 selected (ActiveCell) I want to hit the button and add +1 to B1 and +3 to C1
respectively
If I have Cell A4 selected (ActiveCell) I want to hit the button and add +1 to B4 and +3 to C4

b6dlyr.jpg
 
Last edited:

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
This works
Code:
    rw = ActiveCell.Row
    cl = ActiveCell.Column
    Sheets("Sheet1").Cells(rw, cl + 1).Value = Sheets("Sheet1").Cells(rw, cl + 1).Value + 1
    Sheets("Sheet1").Cells(rw, cl + 2).Value = Sheets("Sheet1").Cells(rw, cl + 2).Value + 3
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

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