I have a problem, in Excel 2010, using the spinbutton in a form accessing a range in a worksheet.
I will try to explain the problem.
I have a range in a worksheet called "MyDrugs". It is in a column eg A1 to A20 and contains the names of medications that I have to take.
I have a UserForm that contains various elements showing date, time, location etc. What I want to do is to pair a spinbutton (sb1) to
a text box (tb1) and then use that spinbutton sb1 to show in text box tb1 the values in "MyDrugs" sequentially.
This would mean that text box tb1 would initially show "First Drug" which is in cell A1 then when the spinbutton sb1 is spun up, the value from A2 "Second Drug" is shown in the text box tb1.
My experience using a spinbutton is not great, but this programming has me absolutely flummoxed!
Any help would be greatly appreciated.
I will try to explain the problem.
I have a range in a worksheet called "MyDrugs". It is in a column eg A1 to A20 and contains the names of medications that I have to take.
I have a UserForm that contains various elements showing date, time, location etc. What I want to do is to pair a spinbutton (sb1) to
a text box (tb1) and then use that spinbutton sb1 to show in text box tb1 the values in "MyDrugs" sequentially.
This would mean that text box tb1 would initially show "First Drug" which is in cell A1 then when the spinbutton sb1 is spun up, the value from A2 "Second Drug" is shown in the text box tb1.
My experience using a spinbutton is not great, but this programming has me absolutely flummoxed!
Any help would be greatly appreciated.