Moving a range of cell to the next page!

sjurisic

New Member
Joined
Dec 20, 2003
Messages
16
Hi All,

I got stuck at a silly problem:

- I have a worksheet that is getting dynamicaly updated through XML interface; Sometime, it is only 1 page - sometime, it can be 3 or 4 pages; No rules here!

- I have a range of cells (6rows x 4cols),at the end of the page, that can not be split between two pages; In other words, I need a code that would check if cell named "total" is located in last five rows of the current page;

If so, macro needs to select cell "total" and to move it to the first cell ( first row) of the next page;

MANY THANKS!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Do you mean you want to insert a Page Break in the cell that contains "total"?

Can you post a sample of your spreadsheet?
 
Upvote 0
sample.xls
ABCDEFGHI
1MSPRemittanceforperiod:Nov.18.2003
2
3Seq#DoctorPatientNamePHNVisitDateStatusClaimedPaidExpCode
4
50000055JaniceLaSavaJurisic123456789Nov.21.2003Rejected23.000.00VX
60000056CharlesHsiaoSavaJurisic123456789Nov.28.2003Paid23.0023.00
70000055JaniceLaSavaJurisic123456789Nov.21.2003Rejected23.000.00VX
80000056CharlesHsiaoSavaJurisic123456789Nov.28.2003Paid23.0023.00
90000055JaniceLaSavaJurisic123456789Nov.21.2003Rejected23.000.00VX
100000056CharlesHsiaoSavaJurisic123456789Nov.28.2003Paid23.0023.00
110000055JaniceLaSavaJurisic123456789Nov.21.2003Rejected23.000.00VX
120000056CharlesHsiaoSavaJurisic123456789Nov.28.2003Paid23.0023.00
130000055JaniceLaSavaJurisic123456789Nov.21.2003Rejected23.000.00VX
140000056CharlesHsiaoSavaJurisic123456789Nov.28.2003Paid23.0023.00
150000055JaniceLaSavaJurisic123456789Nov.21.2003Rejected23.000.00VX
160000056CharlesHsiaoSavaJurisic123456789Nov.28.2003Paid23.0023.00
17
18ClaimStats:PaidHeldRejectedTotal
19344240
20
21TotalPaid:782.13
22TotalHeld:46.00
23TotalRejected:98.56
24TotalClaimed:974.60
Activity Report
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,737
Members
449,050
Latest member
excelknuckles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top