|
-
Jul 14th, 2005, 09:21 AM
#1
Thread Starter
New Member
value to textbox
Hi
I get values from an ini file wich i read in to an array. How do I get the values to right textbox? I use VBA. It's about 50 values...
Kaaja
-
Jul 14th, 2005, 09:31 AM
#2
Re: value to textbox
VB Code:
Dim I as integer
for i = 1 to ubound(array)
textbox1.text = textbox1.text & " " & array(i)
next
will place easch item in the array into a textbox, with a space inbetween each.
If you want a blank line intead of a space, replace " " with vbCrLf
-
Jul 15th, 2005, 01:09 AM
#3
Thread Starter
New Member
Re: value to textbox
Thats not what I'm looking for. I want the text in seperate textboxes. Each line into a specific textbox. But the line can be located where ever inte the array.
-
Jul 15th, 2005, 08:13 AM
#4
Re: value to textbox
how are you deciding which textbox each line goes into? How many textboxes do you have?
-
Jul 15th, 2005, 10:44 AM
#5
Member
Re: value to textbox
If I understand you correctly, its the same as above, but with just a slight difference.
VB Code:
Dim ii as Integer
for ii = 1 to ubound(array)
Range("A1").Select 'or whichever cell to start
ActiveCell.Offset(ii-1,0).Select
'Offset(row, column) so you can decide the direction
'the cells are read into... horizontal or vertical (which I have it set to)
ActiveCell.Value = array(ii)
next ii
Hope this is what you're looking for.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|