Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default 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
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



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