LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Printing consolidation...

I like to copy the data into MSWord and use MSWord's builtin ability to do
column layout. With lots of data, I sometimes have to paste into Notepad
first--large tables cause me trouble in MSWord.

If that doesn't work for you, David McRitchie has a macro that will "snake" the
columns.
http://www.mvps.org/dmcritchie/excel/snakecol.htm

Or you could write your own--kind of like:

Option Explicit
Sub testme()
Dim CurWks As Worksheet
Dim NewWks As Worksheet
Dim LastRow As Long
Dim FirstRow As Long
Dim iRow As Long
Dim oRow As Long
Dim myStep As Long

Set CurWks = Worksheets("sheet1")
Set NewWks = Worksheets.Add

With CurWks
FirstRow = 1
'last row in column A or just 9918??
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
myStep = 120
oRow = 1

For iRow = FirstRow To LastRow Step myStep
.Cells(iRow, "A").Resize(myStep / 2, 4).Copy
NewWks.Cells(oRow, "A").PasteSpecial Paste:=xlPasteValues
.Cells(iRow + myStep / 2, "A").Resize(myStep / 2, 4).Copy
NewWks.Cells(oRow, "E").PasteSpecial Paste:=xlPasteValues
If oRow 1 Then
With NewWks
.HPageBreaks.Add Befo=.Cells(oRow, "A")
End With
End If
oRow = oRow + myStep / 2
Next iRow
End With

NewWks.UsedRange.Columns.AutoFit

End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm


asjboarder wrote:

I have a spreadsheet with data in colums A-D, and rows 1-9918. This is
obviously a HUGE print straight through. Is there a way to consolidate
the rows to make 2 sets of columns? (IE: Page 1 of the print would
consist of rows 1-60 in columns A-D, and rows 61-120 in columns E-H;
Page 2: 121-180 in A-D and 181-240 in E-H; and so on).

Thanks in advance for any help.

Adam

--
asjboarder
------------------------------------------------------------------------
asjboarder's Profile: http://www.excelforum.com/member.php...o&userid=36766
View this thread: http://www.excelforum.com/showthread...hreadid=564831


--

Dave Peterson
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing worksheet not the same across the board Rose Setting up and Configuration of Excel 1 March 21st 06 11:02 PM
Printing in Excel overlaps previous text Nash Excel Discussion (Misc queries) 2 November 8th 05 03:42 PM
Printing Recto/Verso Sam Vanderstraeten Excel Discussion (Misc queries) 2 July 7th 05 12:44 PM
problem printing to PDF mark kubicki Excel Discussion (Misc queries) 1 January 21st 05 06:19 PM
Enable Double sided printing contiuously when printing multiple s. Lee Excel Discussion (Misc queries) 1 November 27th 04 01:58 AM


All times are GMT +1. The time now is 06:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"