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: www.excelforum.com/member.php...oamp;userid=29974
View this thread: www.excelforum.com/showthread...hreadid=496673Sub Test()
Dim iLastrow As Long
Dim i As Long
iLastrow = Cells(Rows.Count, quot;Aquot;).End(xlUp).Row
For i = iLastrow To 2 Step -1
If (i Mod 30) lt;gt; 0 Then
Cells(i, quot;Aquot;).Resize(, 255).Copy Cells(i - 1, quot;Bquot;)
Cells(i, quot;Aquot;).ClearContents
End If
Next i
Range(quot;A1:Aquot; amp; iLastrow).SpecialCells(xlCellTypeBlanks).EntireRow .Delete
End Sub--
HTH
RP
(remove nothere from the email address if mailing direct)quot;smash123quot; gt; wrote in
message ...
gt;
gt; Help me to save the WORLD. Save paper
gt;
gt; My worksheet contains only one column and it has over 1000 rows. I see
gt; if I print all out I need to use like 23 papers. Can anybody help me
gt; what is the best solution to let say move the data to next column for
gt; every 30 rows.
gt;
gt; Following is the example:
gt;
gt; 1
gt; 2
gt; 3
gt; 4
gt; 5
gt; 6
gt;
gt; how to become
gt;
gt; 14
gt; 25
gt; 36
gt;
gt; This way can save my printing paper and helping the world.
gt;
gt; Thank you in advance!
gt;
gt;
gt; --
gt; smash123
gt; ------------------------------------------------------------------------
gt; smash123's Profile:
www.excelforum.com/member.php...oamp;userid=29974
gt; View this thread: www.excelforum.com/showthread...hreadid=496673
gt;
Thank you very much for you help. You have saved the trees! You have a
good new year holiday!--
smash123
------------------------------------------------------------------------
smash123's Profile: www.excelforum.com/member.php...oamp;userid=29974
View this thread: www.excelforum.com/showthread...hreadid=496673
- Sep 29 Fri 2006 20:09
Help me to save the WORLD. Save paper
close
全站熱搜
留言列表
發表留言