I have a userform to input data into the same row in each worksheet for each sheet.
I have 26 worksheets in my workbook us there a way of looping through this line of code??
Each textbox from 2 is associated with a worksheet. Eg. Sheet2 = Me.TextBox2
x = Me.TextBox + 7 'this is week no me.textbox1
For i = 2 to 27
Sheet(i).Cells(x ,4).value = Me.TextBox(i)
Next i
This does not work. Any help please.
I have 26 worksheets in my workbook us there a way of looping through this line of code??
Each textbox from 2 is associated with a worksheet. Eg. Sheet2 = Me.TextBox2
x = Me.TextBox + 7 'this is week no me.textbox1
For i = 2 to 27
Sheet(i).Cells(x ,4).value = Me.TextBox(i)
Next i
This does not work. Any help please.