I am trying to make a sub that when run (a button is clicked) it adds one to the value of a particular row based on what time it is.
for example, my sheet has an hour in 8 rows column B (based on what shift is using the program the times will differ) When the button is hit It needs to add 1 to the cell to the right of whatever hour it is, so if it is 7:35 when the button is hit it needs to add 1 to whatever number is in the row for 7:00.
I have no Idea how to write code for this, any help would be appreciated!
Maybe have it call out the hour from the current time and match it to the cell with that hour in it, store that row then use that row and the set column of the input cells to identify the range that needs to have 1 added to it.
can anyone help me with this code? thank you!
for example, my sheet has an hour in 8 rows column B (based on what shift is using the program the times will differ) When the button is hit It needs to add 1 to the cell to the right of whatever hour it is, so if it is 7:35 when the button is hit it needs to add 1 to whatever number is in the row for 7:00.
I have no Idea how to write code for this, any help would be appreciated!
Maybe have it call out the hour from the current time and match it to the cell with that hour in it, store that row then use that row and the set column of the input cells to identify the range that needs to have 1 added to it.
can anyone help me with this code? thank you!