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

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
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,223,727
Messages
6,174,144
Members
452,547
Latest member
Schilling

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