Hi,
I am not familiar with array, but i am looking for a way to declare variable thru my looping.
Let's say example in Userform, I have 5 textbox.
Textbox1
Textbox2
Textbox3
Textbox4
Textbox5
And I want to do such as:
Dim blntext1 As boolean
Dim blntext2 As boolean
Dim blntext3 As boolean
Dim blntext4 As boolean
Dim blntext5 As boolean
Dim i As Long
blntext1 = False
blntext2 = False
blntext3 = False
blntext4 = False
blntext5 = False
For i = 1 to 5
If Len(Me.controls("Textbox" & i)) > 0 Then
blntext(i) = True
Next i
I want to identify via looping the textbox and associate the boolean variable if the textbox contains data.
Any help?
Bookmarks