Firstly, I am as beginner as beginner gets. I am trying to take the value from a text box embedded in a user form and then using it in another line of code to activate another text box on a worksheet.
Private Sub CommandButton1_Click()
UserForm2.Hide
Dim FieldName As String
FieldName = UserForm2.TextBox1.Value
Worksheets("Quote").FieldName.Activate
End Sub
I hope you can see what I'm attempting from this code. The error is "Run-time error '438': Object doesn't support this property or method". The value obtained from the textbox is identical to the name of the other one and has been tested to see if it can be retrieved or not.
If someone could tell me the correct functions to use, it'd be much obliged.