Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default Keeping text together

I have a worksheet with a couple hundred lines of text. There are
randomly blank lines. I would like to make my pages break on the blank
line, so one group of text doesn't start on the end of one page, and
start on the beginning of another.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Keeping text together

You would need to insert manual pagebreaks at the places you want the pages
to break. These would have to be at locations before an automatic pagebreak
is inserted. (If the page will only support 60 rows, for example, you can't
put manual breaks at a 65 line interval and expect Excel to get those 65
lines all on one page).

You can record how to insert a pagebreak by turning on the macro recorder
and doing it manually.

then you can write your code to loop through your sheet and locate the blank
lines, inserting horizontal pagebreaks at those locations.

--
Regards,
Tom Ogilvy

"Claud Balls" wrote in message
...
I have a worksheet with a couple hundred lines of text. There are
randomly blank lines. I would like to make my pages break on the blank
line, so one group of text doesn't start on the end of one page, and
start on the beginning of another.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



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
keeping text in 1 column Cindy Excel Discussion (Misc queries) 8 December 23rd 09 10:20 PM
keeping text wrapped CAT Excel Discussion (Misc queries) 0 June 17th 09 04:38 PM
Keeping a text box on the worksheet Twin10 Excel Worksheet Functions 0 May 13th 09 05:06 PM
Keeping Text format chad Excel Worksheet Functions 3 September 20th 06 09:08 PM
numbers and text in Excel to read as text keeping the leading zer. Ralph Excel Discussion (Misc queries) 2 December 10th 04 07:05 PM


All times are GMT +1. The time now is 12:56 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"