+ Reply to Thread
Results 1 to 4 of 4

Trying to refer to a textbox in a userform from a module in a for next loop

  1. #1
    Forum Contributor
    Join Date
    06-06-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    180

    Trying to refer to a textbox in a userform from a module in a for next loop

    Hi all,

    I am trying to refer to a textbox in a userform from a module in a for next loop. So I have the following code which works for 1 textbox.

    Please Login or Register  to view this content.
    However, I can't seem to do it in a for next loop so I can refer to multiple textboxes. I tried:

    Please Login or Register  to view this content.
    But no luck! Any ideas. Any help appreciated. Thanks.

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Trying to refer to a textbox in a userform from a module in a for next loop

    Perhaps like this:-
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Trying to refer to a textbox in a userform from a module in a for next loop

    Maybe

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    06-06-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: Trying to refer to a textbox in a userform from a module in a for next loop

    Thanks both I had missed the "" speach marks around the Reg.

    CHeers

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] refer to Textbox using a loop
    By mortphil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-18-2013, 06:55 AM
  2. VBA, Userform, Textbox: Refer to TextBox Name as a Variable
    By Brianandstewie in forum Excel Programming / VBA / Macros
    Replies: 34
    Last Post: 07-09-2013, 05:49 PM
  3. Replies: 1
    Last Post: 10-12-2012, 04:36 AM
  4. to refer to a textbox from a module
    By kmlprtsngh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2010, 03:05 AM
  5. Loop Statement : Use of string to refer userform object
    By asha3010 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-10-2010, 02:27 PM

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