Ha Ha....found the solution
Sub Button1_Click
x=0
For inx = 0 To Table1.RowCount - 1
x = x + Table1.Cell("men",inx)
Next
TextBox1.Text = x
End Sub
I think x must be a global variable as if it was local it would be initialised to 0 on entry to the event Sub.