I will try and explain myself first.
I am making a form in VB to co-operate with an excel spreadsheet. On this form, I want to make changes to data I have already written into excel. I have a cancel and a confirm changes button.
I think I have the cancel button working, but I dont really know because the confirm button isnt working at all. I have no idea how to write the code for the confirm button, or really the cancel button.
This is for the Cancel button that i have written
Private Sub Command_Cancel_Click()
gbCancel = True
Me.Hide
Unload Me
End Sub
This is all I have for the confirm button!
Private Sub Confirm_Button_Click()
Unload Me
End Sub
Thanks, in advance

Maybe I wasn't clear enough.
I have a userform in which i enter data. I have linked all of the boxes where I enter the data to the relavent cells in excel. But, when I press the confirm/submit button, I want it to change the values in the cells in excel to the ones I have entered in the VB form.