VB Code:
  1. Private Sub cmdtotal_Click()
  2.  
  3.     Dim MyTotal As Single
  4.     Dim myTable As Table
  5.     Dim myCel As Cell
  6.     Set myTable = ActiveDocument.Tables(1)
  7.     Dim i As Integer
  8.     For i = 2 To myTable.Rows.Count '2 because you dont want to total the header
  9.         Set myCel = myTable.Rows(i).Cells.Item(5)
  10.         MyTotal = MyTotal + CSng(Replace(myCel.Range.Text, Chr(13) & Chr(7), ""))
  11.     Next
  12.     'Just as an example of how to display the total.
  13.     MsgBox "Total: " & MyTotal
  14.  
  15. End Sub