Dear Experts,

I am creating a word document with VBA form...what should I add to this following codes to create an auto increment...for instance, I have "No", "Name", "Address", etc...when I click on "Add Row" button, it will add new rows for those fields BUT...only the number is automatically counted such as 1,2,3 and so on...here is the codes:

VB Code:
  1. Private Sub cmd_AddRow_Click()
  2.  
  3.     Dim newRow As Row
  4.     Dim myTable As Table
  5.     'Add row:
  6.     Set myTable = ActiveDocument.Tables(1)
  7.     Set newRow = myTable.Rows.Add
  8.     'Insert UserForm textbox's text:
  9.     newRow.Cells(1).Range.InsertAfter Text:=txt_number.Text
  10.     newRow.Cells(2).Range.InsertAfter Text:=txt_num.Text
  11.     newRow.Cells(3).Range.InsertAfter Text:=txt_floor.Text
  12.     newRow.Cells(4).Range.InsertAfter Text:=txt_rep.Text
  13.     newRow.Cells(5).Range.InsertAfter Text:=txt_oldno.Text
  14.     newRow.Cells(6).Range.InsertAfter Text:=txt_newno.Text
  15.     newRow.Cells(7).Range.InsertAfter Text:=txt_remark.Text
  16.    
  17.     'Clear textboxes:
  18.     Me.txt_number.Text = vbNullString
  19.     Me.txt_num.Text = vbNullString
  20.     Me.txt_floor.Text = vbNullString
  21.     Me.txt_rep.Text = vbNullString
  22.     Me.txt_oldno.Text = vbNullString
  23.     Me.txt_newno.Text = vbNullString
  24.     Me.txt_remark.Text = vbNullString
  25.        
  26.     Application.ScreenRefresh
  27.  
  28. End Sub

What codes should I add to have an auto increment..???...please..????

Thanks a lot for your helps...

Jennifer