Hi,
I have a table in a worksheet and a userform that colects the data from the table using vlookup, if i change the data on the userform how can i send it back to the table just using the userform????????
Here is what i have so far
I have a table in a worksheet and a userform that colects the data from the table using vlookup, if i change the data on the userform how can i send it back to the table just using the userform????????
Here is what i have so far
Code:
Private Sub ComboBox1_dropbutt*******()
On Error Resume Next
With Me
.TextBox1 = Application.WorksheetFunction.VLookup((Me.ComboBox1), Sheet4.Range("table2"), 6, 0)
.TextBox2 = Application.WorksheetFunction.VLookup((Me.ComboBox1), Sheet4.Range("table2"), 7, 0)
.TextBox3 = Application.WorksheetFunction.VLookup((Me.ComboBox1), Sheet4.Range("table2"), 3, 0)
.TextBox4 = Application.WorksheetFunction.VLookup((Me.ComboBox1), Sheet4.Range("table2"), 9, 0)
.TextBox5 = Application.WorksheetFunction.VLookup((Me.ComboBox1), Sheet4.Range("table2"), 4, 0)
.ComboBox2 = Application.WorksheetFunction.VLookup((Me.ComboBox1), Sheet4.Range("table2"), 5, 0)
.ComboBox3 = Application.WorksheetFunction.VLookup((Me.ComboBox1), Sheet4.Range("table2"), 2, 0)
End With
TextBox3 = Format(TextBox3.Text, "dd mmm yyyy")
TextBox4 = Format(TextBox4.Text, "dd mmm yyyy")
TextBox5 = Format(TextBox5.Text, "dd mmm yyyy")
End Sub
Private Sub CommandButton2_Click()
Unload vehicle_list
End Sub
Private Sub TextBox3_afterupdate()
TextBox3 = Format(TextBox3.Text, "dd mmm yyyy")
End Sub
Private Sub TextBox4_afterupdate()
TextBox4 = Format(TextBox4.Value, "dd mmm yyyy")
End Sub
Private Sub TextBox5_afterupdate()
TextBox5 = Format(TextBox5.Value, "dd mmmyyyy")
End Sub