I am new to Excel and I have a worksheet with several command buttons. I want to know if I can add value to multiple cells by left clicking (as normal) and right clicking.
For example, if I left click the command button, it adds a (+1) to cell A1
, but if I right click the same command button, it adds a (+1) to cell B1
.
Here is the code that I have to add (+1) when I do a normal left click:
Sub Action68_Click()
'update column BR by adding 1 to the cell value'
Worksheets("Stats").Cells(CurrentPlayerRow, "BR").Value = Worksheets("Stats").Cells(CurrentPlayerRow, "BR").Value + 1
End Sub`
Is there anyway to use the right click button to add a (+1) to the cell BQ
?