Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Printing / October 2006

Tip: Looking for answers? Try searching our database.

two columns on one page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sal - 16 Oct 2006 15:28 GMT
have pent 4 / office 03

Have a simple 3 column spreadsheet - the width of the print area should
allow printing the spreadsheet into two columns on a regular 8.5" x 11" page.

so far I've not been able to figure out how to do this ...  by fiddling with
my printer (Xerox 7400) settings and I got the two columns, BUT printed as
landscape (with portrait set in the printer)

any help, hints ..?

thanks in advance

Sal
Gord Dibben - 16 Oct 2006 22:22 GMT
You could import to Word and use the "columns" feature then export back to
Excel.

The solution in Excel alone would depend upon how you wanted the column lay out
to look like when complete.

Do you want the 3 column "snaked" into 6 columns or into sets of a given number.

Assuming 3 columns of 1500 rows...

Snaking would give you 1- 750 and 751-1500

Sets could be 1-50 and 51-100 then next grouping of 101-150 and 151-200

Following are two macros...first will snake...second will give sets of 50 with a
pagebreak between sets.

Public Sub Snake3to6()
Dim myRange As Range
Dim colsize As Long
Dim maxrow As Long
Const numgroup As Integer = 2
Const NUMCOLS As Integer = 6
   On Error GoTo fileerror
   colsize = Int((ActiveSheet.UsedRange.Rows.Count + _
           ((NUMCOLS - 1)) / NUMCOLS)) / numgroup
   MsgBox "Number of Rows to Move is: " & colsize
   Range("A1").Select
   With ActiveCell.Parent.UsedRange
       maxrow = .Cells(.Cells.Count).Row + 1
   End With
   ActiveCell.Parent.Cells(maxrow, ActiveCell.Column) _
           .End(xlUp).Offset(1, 0).Select
   Set myRange = Range(ActiveCell.Address & ":" _
           & ActiveCell.Offset(-colsize, (numgroup)).Address)
   myRange.Cut Destination:=ActiveSheet.Range("D1")
   Application.CutCopyMode = False
   Range("A1").Select

fileerror:
End Sub

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

   iSource = 1
   iTarget = 1

   Do
       Cells(iSource, "A").Resize(50, 3).Cut _
       Destination:=Cells(iTarget, "A")
       Cells(iSource + 50, "A").Resize(50, 3).Cut _
       Destination:=Cells(iTarget, "D")
     
       iSource = iSource + 100
       iTarget = iTarget + 50
       PageBreak = xlPageBreakManual
   Loop Until IsEmpty(Cells(iSource, "A").Value)

End Sub

Gord Dibben  MS Excel MVP

>have pent 4 / office 03
>
[quoted text clipped - 10 lines]
>
>Sal
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.