+ Reply to Thread
Results 1 to 3 of 3

Looping the rows of an Array into a one range of rows repeatedly

  1. #1
    Registered User
    Join Date
    07-19-2012
    Location
    Washington DC
    MS-Off Ver
    Excel 2013
    Posts
    36

    Looping the rows of an Array into a one range of rows repeatedly

    Hey everyone,

    I was hoping if I could get help with an issue. I want to be able to take a data array (two dimensions) and be able to only copy one row. This is part of a much bigger project, but I'm just getting trouble getting going on this issue so i figured asking smaller questions may get me somewhere rather than overwhelming people.


    I have something like this for taking the data from an array (arvar). However, I want to be able to replace the existing, first line. So basically, i want to copy row by row, as I am doing now, but I want that to replace the first row. Should I be using a Resize? right now it effectively just duplicates this. I need it to copy the whole row of data, and then

    So my desired end result is to paste continuously rows of a two dimensional array on the SAME, set range. so basically: x,x,x,x,x,x,x,x, would then become y,y,y,y,y,y,y,y and then z,z,z,z,z,z,z, etc. The ideas would be the new values replace the old.

    Please Login or Register  to view this content.
    Any help would be much much appreciated. This is one step that would help me to tackling the much bigger issue I described earlier :

    http://www.excelforum.com/excel-prog...ake-place.html

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Looping the rows of an Array into a one range of rows repeatedly

    Not sure I fully understand the problem but I'm guessing the bit that is "moving" the row you are working on is:
    Range("L4").Cells(i,j) as i will increase through your row counter and keep moving to a new row. I'd guess what you need is more like:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-19-2012
    Location
    Washington DC
    MS-Off Ver
    Excel 2013
    Posts
    36

    Re: Looping the rows of an Array into a one range of rows repeatedly

    Thanks for the help yudlugar.

    of course, I just need to hold one of the cell dimensions constant...Getting there little by little.

+ 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] Copy and paste set of rows repeatedly at click of button
    By RoxanaN in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-10-2013, 02:30 AM
  2. Pasting the same rows repeatedly with a one row offset
    By Dorward in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2012, 05:01 PM
  3. Copy down number of rows repeatedly using VBA
    By bignowa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-18-2009, 01:58 PM
  4. Looping through rows in range AND comparing range cells
    By Damask in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-16-2006, 10:30 PM
  5. Deleting specified rows repeatedly on one worksheet
    By foe001 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2005, 11:57 PM

Tags for this Thread

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