This is very basic but it may get you started - I have attached a workbook for you. You will need to have the second workbook open to have the value entered.
Private Sub CommandButton1_Click()
Dim wb2 As Workbook, ws2 As Worksheet
Set wb2 = Workbooks("ReceivingWorkbook.xlsx")
Set ws2 = wb2.Worksheets("Sheet1")
ws2.Range("A1") = TextBox1.Value
Unload UserForm1
End Sub
This code can be behind a button on a Userform so when the user hits the button the value is entered into the workbook called ReceivingWorkbook. As I said previously this workbook needs to be open. For it to be robust you really should programmatically check if the workbook is open and if not then open the workbook. As I say this is very basic but will get you going.
Bookmarks