Saving Papers
Solved/Closed
ehlblackstar
Posts
11
Registration date
Monday April 5, 2010
Status
Member
Last seen
November 2, 2018
-
Oct 8, 2012 at 12:35 AM
ehlblackstar Posts 11 Registration date Monday April 5, 2010 Status Member Last seen November 2, 2018 - Oct 8, 2012 at 12:23 PM
ehlblackstar Posts 11 Registration date Monday April 5, 2010 Status Member Last seen November 2, 2018 - Oct 8, 2012 at 12:23 PM
Related:
- Saving Papers
- Papers please free - Download - Puzzle
- Power saving mode in computer - Guide
- Papers grade please - Download - Puzzle
- Calculation is incomplete. recalculate before saving - Guide
- Lg tv energy saving mode won't turn off - Guide
2 responses
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Oct 8, 2012 at 10:20 AM
Oct 8, 2012 at 10:20 AM
Hi ehlblackstar,
See if this code suit your needs.
Try it out on a copy of the actual file in case it doesn't do what you want.
Now go save some trees!
Best regards,
Trowa
See if this code suit your needs.
Try it out on a copy of the actual file in case it doesn't do what you want.
Sub test() Dim x, y, z, lRow As Integer y = InputBox("How many rows contain a single page?") lRow = Range("A" & Rows.Count).End(xlUp).Row x = 1 z = 1 Do Range(Cells(x, "A"), Cells(x + y - 1, "B")).Copy Range("A" & z) Range(Cells(x + y, "A"), Cells(x + 2 * y - 1, "B")).Copy Range("C" & z) Range(Cells(x + 2 * y, "A"), Cells(x + 3 * y - 1, "B")).Copy Range("E" & z) x = x + 3 * y z = z + y Loop Until x > lRow Range(Cells(z, "A"), Cells(lRow, "B")).ClearContents End Sub
Now go save some trees!
Best regards,
Trowa
ehlblackstar
Posts
11
Registration date
Monday April 5, 2010
Status
Member
Last seen
November 2, 2018
Oct 8, 2012 at 12:22 PM
Oct 8, 2012 at 12:22 PM
Oh Dear Trowa,
You really did help me make my life more easier...
Thank you very much for helping me save more trees.
God Bless you!
You really did help me make my life more easier...
Thank you very much for helping me save more trees.
God Bless you!
Oct 8, 2012 at 12:23 PM
You really did help me make my life more easier...
Thank you very much for helping me save more trees.
God Bless you!
ehlblakcstar