#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Page break

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Page break

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
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 Page Break Adjustments causes a page break each cell BKaufman Excel Worksheet Functions 2 September 10th 10 05:02 AM
How do I do page breaks when view menu doesnt page break preview HeatherF55 Excel Discussion (Misc queries) 0 September 21st 07 04:24 AM
change and/or remove page number watermark in page break preview juga Excel Discussion (Misc queries) 2 December 25th 06 10:15 AM
Hiding the page number in page break preview background. I need coffee, wake me up! Excel Discussion (Misc queries) 0 May 15th 06 10:32 AM
adding a new page break to an existing page break Edward Letendre Excel Discussion (Misc queries) 1 March 6th 05 09:29 AM


All times are GMT +1. The time now is 06:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"