I've got a machine that is out putting 5 data sets in a row. Each data set contains 8 data points. Data set 1 has data in D, E, F, G, H, I, J, K. Data set 2 is in L, M, N, O, P, Q, R, S and so on. This is in sequential order. The next row contains the next 5 data sets and so on.
I have thousands of rows of data that I keep getting. Trying to put together a macro to help sequentially sort the data. So I'm thinking the following to insert 5 rows.
Dim insertrow
inro = 1
Do While insertrow <= 4
Range("A3").EntireRow.Insert
insertrow = insertrow + 1
Loop
from here how to i create a loop to jump to the next row where i'll need to insert 4 more rows, A7 to accommodate the next group of data.
Now the part i'm not sure about. How to create a loop to move the 4 other datasets in the row down into columns D, E, F, G, H, I, J, K. thoughts? This is what I've thrown together but I don't know how to loop it.
Range("L2:S2").Select
Application.CutCopyMode = False
Selection.Cut
Range("D3").Select
ActiveSheet.Paste
Range("T2:AA2").Select
Application.CutCopyMode = False
Selection.Cut
Range("D4").Select
ActiveSheet.Paste
Range("AB2:AI2").Select
Application.CutCopyMode = False
Selection.Cut
Range("D5").Select
ActiveSheet.Paste
Range("AJ2:AQ2").Select
Application.CutCopyMode = False
Selection.Cut
Range("D6").Select
ActiveSheet.Paste
Any help would be appreciated.
I have thousands of rows of data that I keep getting. Trying to put together a macro to help sequentially sort the data. So I'm thinking the following to insert 5 rows.
Dim insertrow
inro = 1
Do While insertrow <= 4
Range("A3").EntireRow.Insert
insertrow = insertrow + 1
Loop
from here how to i create a loop to jump to the next row where i'll need to insert 4 more rows, A7 to accommodate the next group of data.
Now the part i'm not sure about. How to create a loop to move the 4 other datasets in the row down into columns D, E, F, G, H, I, J, K. thoughts? This is what I've thrown together but I don't know how to loop it.
Range("L2:S2").Select
Application.CutCopyMode = False
Selection.Cut
Range("D3").Select
ActiveSheet.Paste
Range("T2:AA2").Select
Application.CutCopyMode = False
Selection.Cut
Range("D4").Select
ActiveSheet.Paste
Range("AB2:AI2").Select
Application.CutCopyMode = False
Selection.Cut
Range("D5").Select
ActiveSheet.Paste
Range("AJ2:AQ2").Select
Application.CutCopyMode = False
Selection.Cut
Range("D6").Select
ActiveSheet.Paste
Any help would be appreciated.
Last edited: