This is the first time I have wrote a macro so please keep it simple for me!
I have created buttons and want to assign a macro to each of them which will, in the cell above it, add 1 each time the button is clicked. It's to record information from a survey.
I realise that i will need a different macro for each button as it will have to refer to the particular cell above the button.
I think the macro code I need is something like:
ActiveCell.Value("A12")=ActiveCell.Value("A12")+1
but it keeps coming up with message saying VBA error 13 type mismatch and I've tried all sorts of variations but can't get it right.
Please help. thank you
I have created buttons and want to assign a macro to each of them which will, in the cell above it, add 1 each time the button is clicked. It's to record information from a survey.
I realise that i will need a different macro for each button as it will have to refer to the particular cell above the button.
I think the macro code I need is something like:
ActiveCell.Value("A12")=ActiveCell.Value("A12")+1
but it keeps coming up with message saying VBA error 13 type mismatch and I've tried all sorts of variations but can't get it right.
Please help. thank you