+ Reply to Thread
Results 1 to 3 of 3

Iterating variable questions

  1. #1
    Registered User
    Join Date
    06-18-2014
    Location
    Houston, TX
    MS-Off Ver
    2010
    Posts
    63

    Iterating variable questions

    Hello all I have this code that is currently not working. I am honestly winging it here. I am pretty new to the language and just took a guess as to how to do this.

    I am trying to use a userform to input data into a spreadsheet. This userform has all the fields that the user will need to fill out all at once, hit enter and it gets added to the spreadsheet. The code is pretty simple but I am trying to use a loop to change a variable value which describes the textbox name in the userform.

    These are extracts from the full code that can be found in the attachment.

    Iters is the is the variable which is iterating from 1 to 9

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    as you can see the userform textbox are named

    temp1, temp2, temp3 to temp9
    run1, run2, run3 to run9

    Any ideas why this isn't working? Is this a complete mess or am I unto something? If it's a mess are there any alternate ways to do this?

    Any input is appreciated thank you in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Iterating variable questions

    hi Inti,

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-18-2014
    Location
    Houston, TX
    MS-Off Ver
    2010
    Posts
    63

    Re: Iterating variable questions

    Waterserv, could you please also look into my other thread? http://www.excelforum.com/excel-prog...ml#post3783677

    Thank you for your help!

+ 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. Iterating one array by another
    By Poolstick in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-28-2013, 02:41 PM
  2. Iterating through values
    By thepopasmurf in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-18-2010, 01:44 PM
  3. Solver add in not iterating
    By TheRandomer in forum Excel General
    Replies: 6
    Last Post: 11-17-2009, 10:39 AM
  4. iterating groups?
    By Mike in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2005, 07:05 AM
  5. [SOLVED] iterating checkboxes
    By [email protected] in forum Excel General
    Replies: 1
    Last Post: 05-11-2005, 04:06 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