Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
smash123
 
Posts: n/a
Default Help me to save the WORLD. Save paper


Help me to save the WORLD. Save paper

My worksheet contains only one column and it has over 1000 rows. I see
if I print all out I need to use like 23 papers. Can anybody help me
what is the best solution to let say move the data to next column for
every 30 rows.

Following is the example:

1
2
3
4
5
6

how to become

14
25
36

This way can save my printing paper and helping the world.

Thank you in advance!


--
smash123
------------------------------------------------------------------------
smash123's Profile: http://www.excelforum.com/member.php...o&userid=29974
View this thread: http://www.excelforum.com/showthread...hreadid=496673

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Help me to save the WORLD. Save paper

Sub Test()
Dim iLastrow As Long
Dim i As Long

iLastrow = Cells(Rows.Count, "A").End(xlUp).Row
For i = iLastrow To 2 Step -1
If (i Mod 30) < 0 Then
Cells(i, "A").Resize(, 255).Copy Cells(i - 1, "B")
Cells(i, "A").ClearContents
End If
Next i

Range("A1:A" & iLastrow).SpecialCells(xlCellTypeBlanks).EntireRow .Delete

End Sub


--

HTH

RP
(remove nothere from the email address if mailing direct)


"smash123" wrote in
message ...

Help me to save the WORLD. Save paper

My worksheet contains only one column and it has over 1000 rows. I see
if I print all out I need to use like 23 papers. Can anybody help me
what is the best solution to let say move the data to next column for
every 30 rows.

Following is the example:

1
2
3
4
5
6

how to become

14
25
36

This way can save my printing paper and helping the world.

Thank you in advance!


--
smash123
------------------------------------------------------------------------
smash123's Profile:

http://www.excelforum.com/member.php...o&userid=29974
View this thread: http://www.excelforum.com/showthread...hreadid=496673



  #3   Report Post  
Posted to microsoft.public.excel.misc
smash123
 
Posts: n/a
Default Help me to save the WORLD. Save paper


Thank you very much for you help. You have saved the trees! You have a
good new year holiday!


--
smash123
------------------------------------------------------------------------
smash123's Profile: http://www.excelforum.com/member.php...o&userid=29974
View this thread: http://www.excelforum.com/showthread...hreadid=496673

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
macro save a workbook whilst increasing file no shrek Excel Worksheet Functions 0 November 10th 05 02:40 PM
Save as Msg box monster Excel Discussion (Misc queries) 3 August 31st 05 06:45 PM
Save as Msg box Bob Umlas, Excel MVP Excel Discussion (Misc queries) 0 August 29th 05 09:56 PM
cannot edit and save jp New Users to Excel 1 February 9th 05 03:25 AM
Save & Save As features in file menu of Excel Blue Excel Discussion (Misc queries) 9 December 27th 04 08:49 PM


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