Saving Papers
Solved/Closed
ehlblackstar
Posts
11
Registration date
Monday 5 April 2010
Status
Member
Last seen
2 November 2018
-
8 Oct 2012 à 00:35
ehlblackstar Posts 11 Registration date Monday 5 April 2010 Status Member Last seen 2 November 2018 - 8 Oct 2012 à 12:23
ehlblackstar Posts 11 Registration date Monday 5 April 2010 Status Member Last seen 2 November 2018 - 8 Oct 2012 à 12:23
Related:
- Saving Papers
- Papers please free download - Download - Puzzle
- Papers grade please - Download - Puzzle
- Calculation is incomplete. recalculate before saving - Guide
- Energy saving lg tv - Guide
- Samsung tv energy saving mode - Guide
2 responses
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
8 Oct 2012 à 10:20
8 Oct 2012 à 10:20
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 5 April 2010
Status
Member
Last seen
2 November 2018
8 Oct 2012 à 12:22
8 Oct 2012 à 12:22
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!
8 Oct 2012 à 12:23
You really did help me make my life more easier...
Thank you very much for helping me save more trees.
God Bless you!
ehlblakcstar