PDA

View Full Version : Send Textbox Text to Array



icemail
07-11-2018, 05:33 AM
Hello,

İ need some help about sendin text or value to array


code is like that

Dim myarray As Variant
myarray = Array(textbox1.text)
For i = LBound(myarray) To UBound(myarray)
'do something
next

thx

mana
07-11-2018, 05:58 AM
??

myarray = split(textbox1.text)

icemail
07-11-2018, 06:48 AM
??

myarray = split(textbox1.text)

Sub test()

Dim myarray As Variant
'myarray = Array(textbox1.text)
myarray = Split(TextBox1.Text)
For i = LBound(myarray) To UBound(myarray)
msgbox myarray
Next

End Sub

Thanks for reply but showing some error
Runtime error 424
Object required

Aflatoon
07-11-2018, 07:55 AM
That error implies you don't have an object called Textbox1.