arihan1511
New Member
I have a Excel spreadsheet which prepares the payment of visiting doctors. Entire data of a month or within two date range is selected and then Total of each Doctor is prepared using Subtotal function with page breaks at each subtotal.Centre Footer of each page is formatted to give current page no of total no of pages.Hence if there are total 10 page breaks then while printing each page footer displays page 1 of 10,2 of 10,3 of 10, .... 10 of 10.
Logically speaking since each subtotal gives total of individual doctor, the page no of each subtotal break should start with 1 to total no of pages in that page break section Example
while printing first page break with one page in that section the page no should be 1 of 1 , printing second page break with 3 pages in that section the page no should be 1 of 3, 2 of 3, & 3 of 3 ............. till 10th page break is printed .THIS IS POSSIBLE MANNUALY TO SELECT EACH PAGE BREAK AND GIVE PRINT COMMAND but this is lengthy and cumbersome procedure
Hence I require a working code to print the SubTotal data having page breaks with page numbering of each pagebreak section to start from 1 to total no of pages in that section
Forum help in this regard will be highly appreciated
Logically speaking since each subtotal gives total of individual doctor, the page no of each subtotal break should start with 1 to total no of pages in that page break section Example
while printing first page break with one page in that section the page no should be 1 of 1 , printing second page break with 3 pages in that section the page no should be 1 of 3, 2 of 3, & 3 of 3 ............. till 10th page break is printed .THIS IS POSSIBLE MANNUALY TO SELECT EACH PAGE BREAK AND GIVE PRINT COMMAND but this is lengthy and cumbersome procedure
Hence I require a working code to print the SubTotal data having page breaks with page numbering of each pagebreak section to start from 1 to total no of pages in that section
Forum help in this regard will be highly appreciated