Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Gord Dibben
 
Posts: n/a
Default

Bob

I would copy the sorted data to another sheet and convert the 3 columns to 6
columns for printing using a macro.

When new data is needed, add it to the original sheet then re-run the macro
with your newly added and sorted data.

Public Sub Snake3to6()
Dim myRange As Range
Dim colsize As Long
Dim maxrow As Long
Dim CopyToSheet As Worksheet
Const numgroup As Integer = 2
Const NUMCOLS As Integer = 6
On Error GoTo fileerror
Application.ScreenUpdating = False
For Each wkSht In Worksheets
With wkSht
If .Name = "Print_Sheet" Then
Application.DisplayAlerts = False
Sheets("Print_Sheet").Delete
End If
End With
Next
Application.DisplayAlerts = True
Set CopyToSheet = Worksheets.Add
CopyToSheet.Name = "Print_Sheet"
Sheets("datasht").Columns("A:C").Copy Destination _
:=Sheets("Print_Sheet").Range("A1")
CopyToSheet.Activate
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


Gord Dibben Excel MVP

On Fri, 4 Mar 2005 10:37:04 -0800, "Captainbob"
wrote:

i have a list of names and dates comprising three columes in excel. How do i
print this list in an array two colums wide on 81/2x11 paper. i.e.:
NAME....DATE....DATE NAME...DATE....DATE
there is enough data to fill four pages. data needs to be sorted so that new
names can be added alphabetically.


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
How to sort/update large excel db [email protected] Excel Discussion (Misc queries) 0 February 2nd 05 12:43 AM
How to link Excel worksheet tab names to dates in each worksheet? Pat Excel Worksheet Functions 9 January 31st 05 07:51 AM
How do I create repeating worksheets in one workbook and have it . DM HD Excel Discussion (Misc queries) 8 December 23rd 04 06:49 PM


All times are GMT +1. The time now is 05:18 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"