Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with indexing

Status
Not open for further replies.

xxentric

Technical User
Oct 14, 2009
35
0
0
US
the code im working with below wont work becuase it is telling me "'text' is not a member of 'string'" how would i go about doing this

** i have 15 text boxes on this form labeled fix1 - fix15, which is why im trying to do this instead of repeating code for each item

Code:
        Public Fix(0 To 50) As String
        i = 1
        Do Until i = 10
            oSheet.Range("L" + (i)).Value = Fix(i).Text
            i = i + 1
        Loop
 
maybe replace fix(i).Text to Fix(i).Tostring??

Just a bit of a guess on my part.
 
From your original post it appears you are working under the notion that Fix(2) is TextBox Fix2. This is not the case; Fix(2) is just an element of a string array and as such, is a String, not a TextBox and does not have any association with your fix1 - fix15 text boxes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top