i put code
in module and call it from userform command button(call Add_Data) but show error what is wrong in code.
Code:
Sub Add_Data()
Worksheets("Cash_Book_Print").Range("E4").Value = TextBox1.Value
Worksheets("Cash_Book_Print").Range("D5").Value = TextBox2.Value
Worksheets("Cash_Book_Print").Range("A5").Value = TextBox3.Value
Worksheets("Cash_Book_Print").Range("C5").Value = TextBox4.Value
Worksheets("Cash_Book_Print").Range("A7").Value = TextBox5.Value
Worksheets("Cash_Book_Print").Range("A9").Value = TextBox6.Value
Worksheets("Cash_Book_Print").Range("E12").Value = TextBox7.Value
End Sub
Last edited by a moderator: