+ Reply to Thread
Results 1 to 3 of 3

Variable name concatenate with array

  1. #1
    Registered User
    Join Date
    04-19-2010
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2007
    Posts
    93

    Variable name concatenate with array

    What I have is the 8 assembly lines and 3 shifts each. I don't want to copy and paste code for each line so I was trying to concatenate the varible name with a loop. I have a table with line rates that I can pull from our server into excel but the list is all shifts all lines and there are some quirks in it's display that I have to programatically fill in.

    So I want to concatenate rLine# as the line number and then the array value is the shift rate.

    Please Login or Register  to view this content.
    How do I get prdline to pass its value to the array and not the name prdline? I get a type mismatch because prdline isn't defined as an array (I assume) When I do a "print prdline" in the immediate window I get "rLine1" which is exactly what I want. The next loop would be rLine2... etc. rLine1(1) would be our line rate for shift one rLine1(2) is 2nd shift and rLine1(3) is the line rate for 3rd shift. Then go to rLine2(1)...etc

    Thank you!

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,282

    Re: Varaible name concantenate with array.

    You don't - you use a 2D array:
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    04-19-2010
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Variable name concatenate with array

    Interesting.

    I will give it a try today.

    Thank you!
    Last edited by Bmoe; 05-11-2010 at 07:27 AM.

+ 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