+ Reply to Thread
Results 1 to 4 of 4

loop through array of text inputs

  1. #1
    Forum Contributor
    Join Date
    12-19-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    191

    loop through array of text inputs

    Hi All,

    I have a workbook with lots of tabs that I'd like to import csv files into. I've got a basic version working (please don't laugh, I know it's not great!) but I'd like to create a loop and make the code simpler if possible.

    I presume I need to set up an array of "Resistive 0" "Resistive 6" "Resistive 8" "Resistive 10" "Old 0" "Old 6" "Old 8" "Old 10" "New 0" "New 6" "New 8" "New 10" and then make a loop to cycle through each of the items in the array but I can't figure it out.

    Any help would be greatly appreciated! Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: loop through array of text inputs

    Hi TPDave,
    maybe this
    Please Login or Register  to view this content.

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: loop through array of text inputs

    Do you have a list of filenames to import?
    If posting code please use code tags, see here.

  4. #4
    Forum Contributor
    Join Date
    12-19-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: loop through array of text inputs

    ^ The filenames are a variation of the tab names, at the moment we just need the ones here but it might be nice to make something more configurable in future.

    Thanks for the solution nilem, it works a treat!

+ 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. Replies: 7
    Last Post: 06-22-2016, 04:31 PM
  2. [SOLVED] Loop through checkbox and inputs data based on which is checked
    By joe8904 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2016, 09:51 AM
  3. Creating an array, then looping the inputs
    By TRLWNC in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-16-2015, 03:51 PM
  4. Speeding up a loop to repeat calculations for different inputs
    By violeta14 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2015, 06:02 AM
  5. Using variable inputs within an array.
    By Doug24 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-05-2014, 04:28 PM
  6. [SOLVED] Storing userform textbox inputs as currency in an array
    By CaptainK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-23-2014, 10:13 AM
  7. Replies: 2
    Last Post: 08-13-2010, 12:15 AM

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