Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 390
Default Printing 2 sets of coulmns on one page

I have a 2500 entries of three columns. I would like to print 2 sets of the
3 columns on one page (to cut my paper usage in half. Any help is
appreciated.

Thanks
Bill
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Printing 2 sets of coulmns on one page

Sub Set_Two_Times()
Dim iSource As Long
Dim iTarget As Long
Dim cCols As Long
Dim rrows As Long

iSource = 1
iTarget = 1
cCols = 3
rrows = InputBox("rows per set")
Do
Cells(iSource, "A").Resize(rrows, cCols).Cut _
Destination:=Cells(iTarget, "A")
Cells(iSource + rrows, "A").Resize(rrows, cCols).Cut _
Destination:=Cells(iTarget, (cCols + 1))
iSource = iSource + (rrows * 2)
iTarget = iTarget + (rrows)
PageBreak = xlPageBreakManual
Loop Until IsEmpty(Cells(iSource, "A").Value)

End Sub

Tips................enter a number of rows say 56 in inputbox.

This will move rows 57:112 to D1:F56 and shift columns A:C up.

And so on down the sheet.

You will have to adjust pagebreaks depending upon your margin settings.


Gord Dibben MS Excel MVP

On Fri, 23 Oct 2009 07:39:01 -0700, Bill
wrote:

I have a 2500 entries of three columns. I would like to print 2 sets of the
3 columns on one page (to cut my paper usage in half. Any help is
appreciated.

Thanks
Bill


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 390
Default Printing 2 sets of coulmns on one page

Thanks worked great

"Gord Dibben" wrote:

Sub Set_Two_Times()
Dim iSource As Long
Dim iTarget As Long
Dim cCols As Long
Dim rrows As Long

iSource = 1
iTarget = 1
cCols = 3
rrows = InputBox("rows per set")
Do
Cells(iSource, "A").Resize(rrows, cCols).Cut _
Destination:=Cells(iTarget, "A")
Cells(iSource + rrows, "A").Resize(rrows, cCols).Cut _
Destination:=Cells(iTarget, (cCols + 1))
iSource = iSource + (rrows * 2)
iTarget = iTarget + (rrows)
PageBreak = xlPageBreakManual
Loop Until IsEmpty(Cells(iSource, "A").Value)

End Sub

Tips................enter a number of rows say 56 in inputbox.

This will move rows 57:112 to D1:F56 and shift columns A:C up.

And so on down the sheet.

You will have to adjust pagebreaks depending upon your margin settings.


Gord Dibben MS Excel MVP

On Fri, 23 Oct 2009 07:39:01 -0700, Bill
wrote:

I have a 2500 entries of three columns. I would like to print 2 sets of the
3 columns on one page (to cut my paper usage in half. Any help is
appreciated.

Thanks
Bill


.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Printing 2 sets of coulmns on one page

Good to hear.

Thanks for the feedback.


Gord

On Fri, 23 Oct 2009 11:20:06 -0700, Bill
wrote:

Thanks worked great

"Gord Dibben" wrote:

Sub Set_Two_Times()
Dim iSource As Long
Dim iTarget As Long
Dim cCols As Long
Dim rrows As Long

iSource = 1
iTarget = 1
cCols = 3
rrows = InputBox("rows per set")
Do
Cells(iSource, "A").Resize(rrows, cCols).Cut _
Destination:=Cells(iTarget, "A")
Cells(iSource + rrows, "A").Resize(rrows, cCols).Cut _
Destination:=Cells(iTarget, (cCols + 1))
iSource = iSource + (rrows * 2)
iTarget = iTarget + (rrows)
PageBreak = xlPageBreakManual
Loop Until IsEmpty(Cells(iSource, "A").Value)

End Sub

Tips................enter a number of rows say 56 in inputbox.

This will move rows 57:112 to D1:F56 and shift columns A:C up.

And so on down the sheet.

You will have to adjust pagebreaks depending upon your margin settings.


Gord Dibben MS Excel MVP

On Fri, 23 Oct 2009 07:39:01 -0700, Bill
wrote:

I have a 2500 entries of three columns. I would like to print 2 sets of the
3 columns on one page (to cut my paper usage in half. Any help is
appreciated.

Thanks
Bill


.


Reply
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
Print two sets of columns per page AnotherNewGuy Excel Discussion (Misc queries) 11 October 9th 09 12:13 AM
Tab function sets me forward one page instead of one row [email protected] Excel Discussion (Misc queries) 2 January 2nd 06 11:16 PM
SELECT FROM 2 COULMNS + 1 ROW Saintsman Excel Worksheet Functions 3 October 10th 05 10:20 AM
Coulmns with Zip Codes [email protected] Excel Worksheet Functions 10 January 30th 05 01:57 AM
Coulmns with Zip Codes Vince48 Excel Worksheet Functions 0 January 29th 05 01:43 AM


All times are GMT +1. The time now is 07:16 PM.

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

About Us

"It's about Microsoft Excel"