Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 846
Default Automate Page Break

Hello, I'm importing a Word Doc into excel that can vary from 10 rows to any
amount of rows. All data gets imported into Column A. Excel's page breaks
don't match up to how the word doc would have it's page break, therefore
making the Excel sheet less readable. The common trait of this word doc is no
matter how long or short it is, it's pagebreak would be equivalent of 49 rows
in Excel. What code could be created to automatically check to see if any
data is present in a group of 49 rows and if there is, create a pagebreak
below. There will always be data in the first 49 rows, but I would like for
it to determine the necessary pagebreaks for the subsequent sections of 49
rows. I'm familiar with VBA, but I'm no good with Loops. Your help is
appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Automate Page Break

Hi Brad

Try this
http://www.rondebruin.nl/print.htm#Breaks


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Brad" wrote in message ...
Hello, I'm importing a Word Doc into excel that can vary from 10 rows to any
amount of rows. All data gets imported into Column A. Excel's page breaks
don't match up to how the word doc would have it's page break, therefore
making the Excel sheet less readable. The common trait of this word doc is no
matter how long or short it is, it's pagebreak would be equivalent of 49 rows
in Excel. What code could be created to automatically check to see if any
data is present in a group of 49 rows and if there is, create a pagebreak
below. There will always be data in the first 49 rows, but I would like for
it to determine the necessary pagebreaks for the subsequent sections of 49
rows. I'm familiar with VBA, but I'm no good with Loops. Your help is
appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 846
Default Automate Page Break

Hi Ron,

Thanks for your link. With minor tweaking of the code to suit my needs, this
works perfectly.

Thanks for the help!

"Ron de Bruin" wrote:

Hi Brad

Try this
http://www.rondebruin.nl/print.htm#Breaks


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Brad" wrote in message ...
Hello, I'm importing a Word Doc into excel that can vary from 10 rows to any
amount of rows. All data gets imported into Column A. Excel's page breaks
don't match up to how the word doc would have it's page break, therefore
making the Excel sheet less readable. The common trait of this word doc is no
matter how long or short it is, it's pagebreak would be equivalent of 49 rows
in Excel. What code could be created to automatically check to see if any
data is present in a group of 49 rows and if there is, create a pagebreak
below. There will always be data in the first 49 rows, but I would like for
it to determine the necessary pagebreaks for the subsequent sections of 49
rows. I'm familiar with VBA, but I'm no good with Loops. Your help is
appreciated.




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 to automate page break goodman Excel Discussion (Misc queries) 5 September 19th 09 04:37 PM
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
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 12:04 AM.

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"