Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Calculate intermediate total on page change and carry it over.
I am using excel 2003 sp2 on my system.
Now I want to insert total of two column every time page changes like one below: 1 3 3 |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Calculate intermediate total on page change and carry it over.
Your problem was interesting! Suppose that your print pages are 52 rows long, add this code in ThisWorkbook: Private Sub Workbook_BeforePrint(Cancel As Boolean) For i = 1 To 3 a = i * 52 Cells(a, 2) = "=Sum(C1:C" & a & ")" Next End Sub Of course you can add variations. -- raypayette ------------------------------------------------------------------------ raypayette's Profile: http://www.excelforum.com/member.php...o&userid=29569 View this thread: http://www.excelforum.com/showthread...hreadid=561849 |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Calculate intermediate total on page change and carry it over.
Thanks.
I will modify it to suit my need. Rahul. "raypayette" wrote: Your problem was interesting! Suppose that your print pages are 52 rows long, add this code in ThisWorkbook: Private Sub Workbook_BeforePrint(Cancel As Boolean) For i = 1 To 3 a = i * 52 Cells(a, 2) = "=Sum(C1:C" & a & ")" Next End Sub Of course you can add variations. -- raypayette ------------------------------------------------------------------------ raypayette's Profile: http://www.excelforum.com/member.php...o&userid=29569 View this thread: http://www.excelforum.com/showthread...hreadid=561849 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|