ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Data Continue to next column? (https://www.excelbanter.com/excel-discussion-misc-queries/3368-data-continue-next-column.html)

Drew

Data Continue to next column?
 
I have over 12,000 entries that are tied to Columns A & B, the rows directly
corrospond to each other. How can I have Columns A & B disply the first 50
entires and then C & D disply the next 50 entries for the first page and the
repeat the process for the next pages.

FOR EXAMPLE
A B C D
1 2 4 8
2 4 5 10
3 6 6 12

Page two should start with 51st enteries in Colums A & B and 101 in C & D???

Thank You


Gord Dibben

Drew

Not quite sure from your description but.......on a copy of the worksheet try
this macro.

Sub Move_Sets()
Dim iSource As Long
Dim iTarget As Long

iSource = 1
iTarget = 1

Do
Cells(iSource, "A").Resize(50, 2).Cut _
Destination:=Cells(iTarget, "A")
Cells(iSource + 50, "A").Resize(50, 2).Cut _
Destination:=Cells(iTarget, "C")
iSource = iSource + 100
iTarget = iTarget + 51
Loop Until IsEmpty(Cells(iSource, "A"))

End Sub


Gord Dibben Excel MVP


On Sat, 8 Jan 2005 10:51:04 -0800, "Drew"
wrote:

I have over 12,000 entries that are tied to Columns A & B, the rows directly
corrospond to each other. How can I have Columns A & B disply the first 50
entires and then C & D disply the next 50 entries for the first page and the
repeat the process for the next pages.

FOR EXAMPLE
A B C D
1 2 4 8
2 4 5 10
3 6 6 12

Page two should start with 51st enteries in Colums A & B and 101 in C & D???

Thank You




All times are GMT +1. The time now is 06:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com