Hi,
I have an array, and I want to split the contence into textboxes. I have written some code to do so, but it won't work and I can't figure out what's wrong with it.
Could someone please help me with this
Dim bh As String
Dim x As String
For Each bh In z
MsgBox(bh)
If x = 0 Then
TextBox1.Text = bh
x = (x + 1)
End If
If x = 1 Then
TextBox2.Text = bh
x = (x + 1)
End If
If x = 2 Then
TextBox3.Text = bh
x = (x + 1)
End If
If x = 3 Then
TextBox4.Text = bh
x = (x + 1)
End If
If x = 4 Then
TextBox5.Text = bh
x = (x + 1)
End If
Next