First post, so feedback on format appreciated. I want to add a value to a cell in a Table using a Userform. Combobox Value 'filters' Col 1, Textbox 1 Value 'filters Col 2 and the resulting Col 3 is the target cell for my value to input from textbox2.
Code below Shows a Compile Error: Sub or Function not defined ("Where" is highlighted).
Private Sub CommandButton1_Click()
Dim tbl As ListObject
Sheets("Sheet5").Activate
Set tbl = ActiveSheet.ListObject("Table1")
With tbl.DataBodyRange.Cells(12, tbl.ListColumns("Cost").Index)
.Value = TebxtBox2
Where tbl.DataBodyRange.Cells(0, tbl.ListColumns("Friendly Name").Index) = ComboBox.Value _
And tbl.DataBodyRange.Cells(11, tbl.ListColumns("Height").Index) = TextBox1.Value
End With
End Sub
Thanks.....