PC Review


Reply
Thread Tools Rate Thread

Re: Formating multiple columns

 
 
Gord Dibben
Guest
Posts: n/a
 
      16th Jun 2012
Not sure how you want the pages to be laid out but have a try with
this code which puts 1-52 and 53-104 side by side on one page.

Sort your original first on last names then run the macro.

Sub Move_Sets_PBreak()
'pbreak inserted
Dim iSource As Long
Dim iTarget As Long
Dim i As Long

iSource = 1
iTarget = 1
Application.ScreenUpdating = False
Do
Cells(iSource, "A").Resize(52, 7).Cut _
Destination:=Cells(iTarget, "A")
Cells(iSource + 52, "A").Resize(52, 7).Cut _
Destination:=Cells(iTarget, "H")

iSource = iSource + 104
iTarget = iTarget + 52

Loop Until IsEmpty(Cells(iSource, "A"))

For i = 53 To Cells(Rows.Count, "A").End(xlUp).Row Step 52
Cells(i, 1).Select
ActiveSheet.HPageBreaks.Add Before:=ActiveCell
Next i
Application.ScreenUpdating = True
End Sub


Gord



On Wed, 13 Jun 2012 16:37:46 +0000, Atochabsh
<(E-Mail Removed)> wrote:

>
>I have a data sheet with nearly 9000 "rows" of data. Those rows have 7
>columns of data. The first column is last names. I need to keep the
>data in alphabetical order. But since we print this data in book form,
>I'd like to save paper by creating two columns of this data on one piece
>of paper. So far there are 52 rows per page. How can I transfer this
>data into two sets of data per page? keeping it in alphabetical order.
>In the past we have copy and pasted, but it takes a very long time to do
>that with this much data.
>
>Thank you,
>
>Atochabsh

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Install dates formating using conditional formating? Jerry Eggleston Microsoft Excel Misc 2 9th Nov 2005 06:49 PM
Formating Text changes formating of entire document =?Utf-8?B?Uml0ZXNoIEt1bWFy?= Microsoft Word Document Management 1 6th Jul 2005 11:55 PM
Formating C without Formating D (Recovery) =?Utf-8?B?VG9vIG1hbnkgdXNlcnM=?= Windows XP Performance 1 19th Apr 2005 05:40 PM
Parent Columns and Child Columns don't have type-matching columns microsoft news Microsoft ADO .NET 1 21st Sep 2004 10:08 AM
the columns, the columns, what what the columns Fons Ponsioen Microsoft Access Reports 0 27th May 2004 08:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:08 PM.