Good day I am trying to update a spreadsheet via a userform and am not having much luck. I have had error codes but am not sure what or how to fix them, this is the code i'm getting now (run time error 1004 vba application defined or object defined)
If somebody could just point me in the right direction, I would be happy.
I have managed to get it to bring all the info up, when you scroll through a combobox, as I said trying to get it to update is not working. Please find that part of the code bellow.
If somebody could just point me in the right direction, I would be happy.
I have managed to get it to bring all the info up, when you scroll through a combobox, as I said trying to get it to update is not working. Please find that part of the code bellow.
Code:
Private Sub cmb_update_Click()
Dim myname As String, myrange As Range
Dim currentrow As Long
myname = tb_nsurname.Text
Worksheets("PATIENT DATA").Cells(currentrow, "a").Value = tb_nsurname
Worksheets("PATIENT DATA").Cells(currentrow, "b").Value = tb_name
End Sub