I am trying to programmatic press the enter key once a value has been set to specific cell:
Private Sub TextBox1_Change()
If TextBox1.Text = "ALC Test" Then
Range("$F$2").Value = "17"
ActiveWorkbook.RefreshAll
End If
If TextBox1.Text = "ALC Prod" Then
Range("$F$2").Value = "54"
ActiveWorkbook.RefreshAll
End If
If TextBox1.Text = "" Then
Range("$F$2").Value = ""
ActiveWorkbook.RefreshAll
End If
End Sub
So that I can trigger in excel the refresh of my table But that does not to seam to work correctly

ActiveWorkbook.RefreshAllas I edited in my answer