put the textboxes in an array
textboxes(0), textboxes(2), textboxes(2) .
Then use
VB Code:
  1. For I = 0 To 2
  2.      MsgBox (textboxes(i).Text)
  3. Next