Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm working with a worksheet containing data about different companies,
usually, data of each company is input in a single row, however, some of them are input into two or three rows. (eg. row 1: company A, row 2,3: company B, etc). When I print my spreadsheet, sometimes, the data of a company will spilt into 2 pages, so i manually setup some page breaks for it. I've then wrote a vba function to sort my data. The problem is that, after I sort my data, the page break position needed to be reset. I would like to know if there is any method to use vba to setup page break automatically for my case. (I want to set page break when the data will spilt into two pages). Thanks very much |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Probably.
If the code can identify when a company is on more than one line. -- Regards, Tom Ogilvy "0124" wrote in message ... I'm working with a worksheet containing data about different companies, usually, data of each company is input in a single row, however, some of them are input into two or three rows. (eg. row 1: company A, row 2,3: company B, etc). When I print my spreadsheet, sometimes, the data of a company will spilt into 2 pages, so i manually setup some page breaks for it. I've then wrote a vba function to sort my data. The problem is that, after I sort my data, the page break position needed to be reset. I would like to know if there is any method to use vba to setup page break automatically for my case. (I want to set page break when the data will spilt into two pages). Thanks very much |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007 Page Break Adjustments causes a page break each cell | Excel Worksheet Functions | |||
How do I do page breaks when view menu doesnt page break preview | Excel Discussion (Misc queries) | |||
change and/or remove page number watermark in page break preview | Excel Discussion (Misc queries) | |||
Hiding the page number in page break preview background. | Excel Discussion (Misc queries) | |||
adding a new page break to an existing page break | Excel Discussion (Misc queries) |