+ Reply to Thread
Results 1 to 3 of 3

Cycle throught Text Boxes in UserForms

  1. #1
    Forum Contributor
    Join Date
    01-25-2011
    Location
    Virginia
    MS-Off Ver
    Excel 2016
    Posts
    166

    Cycle throught Text Boxes in UserForms

    I have 10 text boxes in a multipage user form that I am trying to cycle though to put their input data onto my spreadsheet. The text boxes are named TestWord1, TestWord2, . . . TestWord 10. I have come up with the following code
    Please Login or Register  to view this content.
    I have tried multiple ways to get the value out of the "current" text box (last attempt shown in the TWord = Evaluate ... line, which results in a error code 2029?

    I know i can do this with select case and have 10 cases, the first being Tword =TestWord1.Text, but I was hoping to loop through this - is there a way to get TWord to evaluate to TestWord1 -TestWord10?

    Thanks in advance,

    Tom
    Last edited by tom.hogan; 05-16-2011 at 11:45 AM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Cycle throught Text Boxes in UserForms

    Please Login or Register  to view this content.
    should do it.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    01-25-2011
    Location
    Virginia
    MS-Off Ver
    Excel 2016
    Posts
    166

    Re: Cycle throught Text Boxes in UserForms

    It did, thanks for the quick reply!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1