hello,
i made a userform calculator which adds hours to selected cells.
its based on MrExcels tutorial.
my problem is that the text box wont recognize hours in the format
as the cells have.
the format of the cells is [h]:mm for example i selected a cell with 24:50 ( 24 hours & 50 minutes) & a cell with 2000:05 ( 2000 hours & 5 minutes) i open the userform & i want to tipe in the textbox 11:30 & press on the cmdbutton and i want to get in the first cell that i selected the result of 36:20 & in the second cell that i selected the result of 2011:35.
the code i used in the cmdbutton :
for each cell in selection
cell.value = cell.value + textbox1.value
next cell
please help
thanks
i made a userform calculator which adds hours to selected cells.
its based on MrExcels tutorial.
my problem is that the text box wont recognize hours in the format
as the cells have.
the format of the cells is [h]:mm for example i selected a cell with 24:50 ( 24 hours & 50 minutes) & a cell with 2000:05 ( 2000 hours & 5 minutes) i open the userform & i want to tipe in the textbox 11:30 & press on the cmdbutton and i want to get in the first cell that i selected the result of 36:20 & in the second cell that i selected the result of 2011:35.
the code i used in the cmdbutton :
for each cell in selection
cell.value = cell.value + textbox1.value
next cell
please help
thanks