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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

For...Next Listing of Textbox Values?

Status
Not open for further replies.
Joined
Jul 22, 2002
Messages
25
Location
US
Anybody know of a VB way to grab values from textboxes in a for...next loop?

Example...

You got (3) text boxes named Text1, Text2, and Text3 whose value is in this example 10, 20, & 30 respectfully, so

For x = 1 to 3
y = Text(x).Value 'something like this
Print y
Next x

Need the print-out to be (values)

10
20
30

NOT (Strings)

"Text1.value"
"Text2.value"
"Text3.value"


TIA

Mr. Pickles
 
Hi Mr Pickles, try this:
For Each Tb in Userform1.Textboxes
debug.print Tb.value
Next Rgds
~Geoff~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top